chore: update PR as per feedback
This commit is contained in:
parent
6b326f7924
commit
4b6b59cc82
2 changed files with 10 additions and 10 deletions
|
@ -119,7 +119,7 @@ describe('app module', () => {
|
|||
|
||||
describe('app.isPackaged', () => {
|
||||
it('should be false durings tests', () => {
|
||||
expect(app.isPackaged).equal(false)
|
||||
expect(app.isPackaged).to.equal(false)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -180,7 +180,7 @@ describe('app module', () => {
|
|||
|
||||
// Singleton will send us greeting data to let us know it's running.
|
||||
// After that, ask it to exit gracefully and confirm that it does.
|
||||
appProcess.stdout.on('data', data => appProcess && appProcess.kill())
|
||||
appProcess.stdout.on('data', data => appProcess!.kill())
|
||||
const [code, signal] = await emittedOnce(appProcess, 'close')
|
||||
|
||||
const message = `code:\n${code}\nsignal:\n${signal}`
|
||||
|
@ -1226,9 +1226,9 @@ describe('app module', () => {
|
|||
expect(app.whenReady()).to.be.a('promise')
|
||||
})
|
||||
|
||||
it('becomes fulfilled if the app is already ready', () => {
|
||||
it('becomes fulfilled if the app is already ready', async () => {
|
||||
expect(app.isReady()).to.equal(true)
|
||||
expect(app.whenReady()).to.be.eventually.fulfilled.equal(undefined)
|
||||
await expect(app.whenReady()).to.be.eventually.fulfilled.equal(undefined)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue