eslint - rules updated

This commit is contained in:
Sebastian Seedorf
2020-11-19 22:22:14 +01:00
parent b79c2f96cd
commit 5c31dc285a
13 changed files with 100 additions and 83 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable promise/catch-or-return,promise/no-callback-in-promise */
import {setConfig, getConfig, resetConfig, getUserInfo, UserInfo} from '../src/utils/utils';
import {Resolvable, WaitForSync} from '../src/utils/resolvable';
import {describe, it} from 'mocha';
@@ -7,7 +8,7 @@ import {expect} from 'chai';
import * as fetchMock from 'fetch-mock';
describe('frontend:utils - setConfig/getConfig', () => {
const CONFIG = {EXTERNAL_BASE_URL: "http://demo.url"};
const CONFIG = {EXTERNAL_BASE_URL: 'http://demo.url'};
afterEach(() => resetConfig());
it('should return config (afterwards)', async () => {
@@ -25,9 +26,9 @@ describe('frontend:utils - setConfig/getConfig', () => {
});
describe('frontend:utils - getUserInfo', () => {
const CONFIG = {EXTERNAL_BASE_URL: "http://demo.url"};
const CONFIG = {EXTERNAL_BASE_URL: 'http://demo.url'};
const USER_INFO: Partial<UserInfo> = {
name: "John Doe",
name: 'John Doe',
};
beforeEach(() => setConfig(CONFIG));
@@ -46,7 +47,7 @@ describe('frontend:utils - getUserInfo', () => {
describe('frontend:utils - resolvable', () => {
const DATA = 5;
const ERROR = new Error("Custom error!");
const ERROR = new Error('Custom error!');
it('waitForSync should return data (afterwards)', async () => {
const resolvable = new WaitForSync<number>();