build: enable JS semicolons (#22783)

This commit is contained in:
Samuel Attard 2020-03-20 13:28:31 -07:00 committed by GitHub
parent 24e21467b9
commit 5d657dece4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
354 changed files with 21512 additions and 21510 deletions

View file

@ -1,5 +1,5 @@
import { expect } from 'chai'
import { Notification } from 'electron'
import { expect } from 'chai';
import { Notification } from 'electron';
describe('Notification module', () => {
it('inits, gets and sets basic string properties correctly', () => {
@ -10,32 +10,32 @@ describe('Notification module', () => {
replyPlaceholder: 'replyPlaceholder',
sound: 'sound',
closeButtonText: 'closeButtonText'
})
});
expect(n.title).to.equal('title')
n.title = 'title1'
expect(n.title).to.equal('title1')
expect(n.title).to.equal('title');
n.title = 'title1';
expect(n.title).to.equal('title1');
expect(n.subtitle).equal('subtitle')
n.subtitle = 'subtitle1'
expect(n.subtitle).equal('subtitle1')
expect(n.subtitle).equal('subtitle');
n.subtitle = 'subtitle1';
expect(n.subtitle).equal('subtitle1');
expect(n.body).to.equal('body')
n.body = 'body1'
expect(n.body).to.equal('body1')
expect(n.body).to.equal('body');
n.body = 'body1';
expect(n.body).to.equal('body1');
expect(n.replyPlaceholder).to.equal('replyPlaceholder')
n.replyPlaceholder = 'replyPlaceholder1'
expect(n.replyPlaceholder).to.equal('replyPlaceholder1')
expect(n.replyPlaceholder).to.equal('replyPlaceholder');
n.replyPlaceholder = 'replyPlaceholder1';
expect(n.replyPlaceholder).to.equal('replyPlaceholder1');
expect(n.sound).to.equal('sound')
n.sound = 'sound1'
expect(n.sound).to.equal('sound1')
expect(n.sound).to.equal('sound');
n.sound = 'sound1';
expect(n.sound).to.equal('sound1');
expect(n.closeButtonText).to.equal('closeButtonText')
n.closeButtonText = 'closeButtonText1'
expect(n.closeButtonText).to.equal('closeButtonText1')
})
expect(n.closeButtonText).to.equal('closeButtonText');
n.closeButtonText = 'closeButtonText1';
expect(n.closeButtonText).to.equal('closeButtonText1');
});
it('inits, gets and sets basic boolean properties correctly', () => {
const n = new Notification({
@ -43,16 +43,16 @@ describe('Notification module', () => {
body: 'body',
silent: true,
hasReply: true
})
});
expect(n.silent).to.be.true('silent')
n.silent = false
expect(n.silent).to.be.false('silent')
expect(n.silent).to.be.true('silent');
n.silent = false;
expect(n.silent).to.be.false('silent');
expect(n.hasReply).to.be.true('has reply')
n.hasReply = false
expect(n.hasReply).to.be.false('has reply')
})
expect(n.hasReply).to.be.true('has reply');
n.hasReply = false;
expect(n.hasReply).to.be.false('has reply');
});
it('inits, gets and sets actions correctly', () => {
const n = new Notification({
@ -67,13 +67,13 @@ describe('Notification module', () => {
text: '2'
}
]
})
});
expect(n.actions.length).to.equal(2)
expect(n.actions[0].type).to.equal('button')
expect(n.actions[0].text).to.equal('1')
expect(n.actions[1].type).to.equal('button')
expect(n.actions[1].text).to.equal('2')
expect(n.actions.length).to.equal(2);
expect(n.actions[0].type).to.equal('button');
expect(n.actions[0].text).to.equal('1');
expect(n.actions[1].type).to.equal('button');
expect(n.actions[1].text).to.equal('2');
n.actions = [
{
@ -83,14 +83,14 @@ describe('Notification module', () => {
type: 'button',
text: '4'
}
]
];
expect(n.actions.length).to.equal(2)
expect(n.actions[0].type).to.equal('button')
expect(n.actions[0].text).to.equal('3')
expect(n.actions[1].type).to.equal('button')
expect(n.actions[1].text).to.equal('4')
})
expect(n.actions.length).to.equal(2);
expect(n.actions[0].type).to.equal('button');
expect(n.actions[0].text).to.equal('3');
expect(n.actions[1].type).to.equal('button');
expect(n.actions[1].text).to.equal('4');
});
// TODO(sethlu): Find way to test init with notification icon?
})
});