From 1d907af455ad608dbce79dba5ad2e62a015fff00 Mon Sep 17 00:00:00 2001 From: Xymorot Date: Thu, 10 Oct 2019 19:44:39 +0200 Subject: [PATCH] test: refactor main test file --- test/integration/{launch.spec.ts => main.spec.ts} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename test/integration/{launch.spec.ts => main.spec.ts} (85%) diff --git a/test/integration/launch.spec.ts b/test/integration/main.spec.ts similarity index 85% rename from test/integration/launch.spec.ts rename to test/integration/main.spec.ts index 4072ccc..4d54376 100644 --- a/test/integration/launch.spec.ts +++ b/test/integration/main.spec.ts @@ -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); }); }); });