config: disable typedef tslint rule in tests
This commit is contained in:
parent
bdaab7f5bd
commit
5acc27c6d9
|
@ -4,10 +4,10 @@ import { afterEach, beforeEach, describe, it } from 'mocha';
|
||||||
import { Application } from 'spectron';
|
import { Application } from 'spectron';
|
||||||
import packageJson from '../package.json';
|
import packageJson from '../package.json';
|
||||||
|
|
||||||
describe('Application', function(): void {
|
describe('Application', function() {
|
||||||
this.timeout(10000);
|
this.timeout(10000);
|
||||||
|
|
||||||
beforeEach(function(): any {
|
beforeEach(function() {
|
||||||
this.app = new Application({
|
this.app = new Application({
|
||||||
// @ts-ignore this does give the path to electron executable (hopefully platform agnostic)
|
// @ts-ignore this does give the path to electron executable (hopefully platform agnostic)
|
||||||
path: electron.default,
|
path: electron.default,
|
||||||
|
@ -16,13 +16,13 @@ describe('Application', function(): void {
|
||||||
return this.app.start();
|
return this.app.start();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function(): any {
|
afterEach(function() {
|
||||||
if (this.app && this.app.isRunning()) {
|
if (this.app && this.app.isRunning()) {
|
||||||
return this.app.stop();
|
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) => {
|
return this.app.client.getWindowCount().then((count: number) => {
|
||||||
expect(count).to.be.gte(1);
|
expect(count).to.be.gte(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { Response } from 'node-fetch';
|
||||||
import sinon from 'sinon';
|
import sinon from 'sinon';
|
||||||
import { fetch } from '../../../src/main/services/web-crawler';
|
import { fetch } from '../../../src/main/services/web-crawler';
|
||||||
|
|
||||||
describe('Web Crawler', function(): void {
|
describe('Web Crawler', function() {
|
||||||
this.timeout(2000);
|
this.timeout(2000);
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": ["../tslint.json"],
|
"extends": ["../tslint.json"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-magic-numbers": false
|
"no-magic-numbers": false,
|
||||||
|
"typedef": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue