config: disable typedef tslint rule in tests

This commit is contained in:
Xymorot 2019-10-12 00:57:02 +02:00
parent bdaab7f5bd
commit 5acc27c6d9
3 changed files with 7 additions and 6 deletions

View File

@ -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);
});

View File

@ -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(() => {

View File

@ -1,6 +1,7 @@
{
"extends": ["../tslint.json"],
"rules": {
"no-magic-numbers": false
"no-magic-numbers": false,
"typedef": false
}
}