Fix linting issues

This commit is contained in:
Samuel Attard 2016-11-22 16:13:08 +11:00
parent 926cabec78
commit 97b4f12112
No known key found for this signature in database
GPG key ID: 273DC1869D8F13EF

View file

@ -1765,12 +1765,12 @@ describe('browser-window module', function () {
}) })
it('should not affect the bounds when restoring the window', function (done) { it('should not affect the bounds when restoring the window', function (done) {
w.minimize(); w.minimize()
setTimeout(() => { setTimeout(() => {
w.restore(); w.restore()
assert.equal(w.getSize()[0], 800); assert.equal(w.getSize()[0], 800)
done(); done()
}, 200); }, 200)
}) })
}) })
@ -1781,13 +1781,13 @@ describe('browser-window module', function () {
}) })
it('should not affect the bounds when restoring the window', function (done) { it('should not affect the bounds when restoring the window', function (done) {
const originalPos = w.getPosition(); const originalPos = w.getPosition()
w.maximize(); w.maximize()
setTimeout(() => { setTimeout(() => {
w.unmaximize(); w.unmaximize()
assertBoundsEqual(originalPos, w.getPosition()); assertBoundsEqual(originalPos, w.getPosition())
done(); done()
}, 200); }, 200)
}) })
}) })
}) })