chore: lint spec-main (#20835)

This commit is contained in:
Jeremy Apthorp 2019-11-01 13:37:02 -07:00 committed by GitHub
parent 1fed1ed577
commit ecd9e1f26e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 589 additions and 533 deletions

View file

@ -3,7 +3,7 @@ import { Menu, Tray, nativeImage } from 'electron'
import { ifdescribe, ifit } from './spec-helpers'
describe('tray module', () => {
let tray: Tray;
let tray: Tray
beforeEach(() => { tray = new Tray(nativeImage.createEmpty()) })
@ -56,9 +56,9 @@ describe('tray module', () => {
describe('tray.getBounds()', () => {
afterEach(() => { tray.destroy() })
ifit(process.platform !== 'linux') ('returns a bounds object', function () {
ifit(process.platform !== 'linux')('returns a bounds object', function () {
const bounds = tray.getBounds()
expect(bounds).to.be.an('object').and.to.have.all.keys('x', 'y', 'width', 'height');
expect(bounds).to.be.an('object').and.to.have.all.keys('x', 'y', 'width', 'height')
})
})