test: refactor main test file

This commit is contained in:
Xymorot 2019-10-10 19:44:39 +02:00
parent f3123264be
commit 1d907af455
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { afterEach, beforeEach, describe, it } from 'mocha';
import { Application } from 'spectron';
import packageJson from '../../package.json';
describe('Application Launch', function(): void {
describe('Application', function(): void {
this.timeout('10s');
beforeEach(function(): any {
@ -24,7 +24,7 @@ describe('Application Launch', function(): void {
it('shows an initial window', function(): any {
return this.app.client.getWindowCount().then((count: number) => {
expect(count).to.equal(1, 'there is not one window open on app start');
expect(count).to.be.gte(1);
});
});
});