test: refactor main test file
This commit is contained in:
parent
f3123264be
commit
1d907af455
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue