diff --git a/tests/main.spec.ts b/tests/main.spec.ts index 2fc615e..1c02d3e 100644 --- a/tests/main.spec.ts +++ b/tests/main.spec.ts @@ -4,10 +4,10 @@ import { afterEach, beforeEach, describe, it } from 'mocha'; import { Application } from 'spectron'; import packageJson from '../package.json'; -describe('Application', function(): void { +describe('Application', function() { this.timeout(10000); - beforeEach(function(): any { + beforeEach(function() { this.app = new Application({ // @ts-ignore this does give the path to electron executable (hopefully platform agnostic) path: electron.default, @@ -16,13 +16,13 @@ describe('Application', function(): void { return this.app.start(); }); - afterEach(function(): any { + afterEach(function() { if (this.app && this.app.isRunning()) { return this.app.stop(); } }); - it('shows an initial window @slow', function(): any { + it('shows an initial window @slow', function() { return this.app.client.getWindowCount().then((count: number) => { expect(count).to.be.gte(1); }); diff --git a/tests/main/services/web-crawler.spec.ts b/tests/main/services/web-crawler.spec.ts index 4195e37..2b47fe9 100644 --- a/tests/main/services/web-crawler.spec.ts +++ b/tests/main/services/web-crawler.spec.ts @@ -5,7 +5,7 @@ import { Response } from 'node-fetch'; import sinon from 'sinon'; import { fetch } from '../../../src/main/services/web-crawler'; -describe('Web Crawler', function(): void { +describe('Web Crawler', function() { this.timeout(2000); beforeEach(() => { diff --git a/tests/tslint.json b/tests/tslint.json index 4581e35..b7402cd 100644 --- a/tests/tslint.json +++ b/tests/tslint.json @@ -1,6 +1,7 @@ { "extends": ["../tslint.json"], "rules": { - "no-magic-numbers": false + "no-magic-numbers": false, + "typedef": false } }