Linting in tests

This commit is contained in:
Daniël van Noord
2021-04-30 20:26:52 +02:00
parent c7a3a0a329
commit 091b1f100e
11 changed files with 125 additions and 125 deletions

View File

@@ -7,10 +7,10 @@ import ToggleGCTimer from '../../../src/Config/Toggles/ToggleGCTimer';
import { GCTimers } from '../../../src/Disp/VariablesAndData';
import { CacheGoldenShimmersByID } from '../../../src/Cache/VariablesAndData';
describe('ToggleGCTimer', function () {
describe('ToggleGCTimer', () => {
global.l = l;
beforeEach(function () {
beforeEach(() => {
global.domids = {};
GCTimers[0] = { style: {} };
GCTimers[1] = { style: {} };
@@ -23,20 +23,20 @@ describe('ToggleGCTimer', function () {
ToggleGCTimer();
});
describe('GCTimer = 0', function () {
before(function () {
describe('GCTimer = 0', () => {
before(() => {
CMOptions.GCTimer = 0;
});
it('Toggle style correctly', function () {
it('Toggle style correctly', () => {
assert.equal(GCTimers[0].style.display, 'none');
assert.equal(GCTimers[1].style.display, 'none');
});
});
describe('GCTimer = 1', function () {
before(function () {
describe('GCTimer = 1', () => {
before(() => {
CMOptions.GCTimer = 1;
});
it('Toggle style correctly', function () {
it('Toggle style correctly', () => {
assert.equal(GCTimers[0].style.display, 'block');
assert.equal(GCTimers[0].style.left, 'Test00');
assert.equal(GCTimers[0].style.top, 'Test01');