Skip to content

Commit

Permalink
Update spec-main/api-browser-window-spec.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Charles Kerr <ckerr@github.com>
  • Loading branch information
erickzhao and ckerr committed Jul 31, 2019
1 parent 83fc694 commit a970160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec-main/api-browser-window-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ describe('BrowserWindow module', () => {
}).to.not.throw()
})

it('does not change opacity if given number out of bounds', () => {
it('clamps opacity to [0.0...1.0]', () => {
const w = new BrowserWindow({ show: false, opacity: 0.5 })
w.setOpacity(100)
expect(w.getOpacity()).to.equal(1.0)
Expand Down

0 comments on commit a970160

Please sign in to comment.