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

@@ -6,27 +6,27 @@ import { CMOptions } from '../../../src/Config/VariablesAndData';
import ToggleDetailedTime from '../../../src/Config/Toggles/ToggleDetailedTime';
import { BackupFunctions } from '../../../src/Main/VariablesAndData';
describe('ToggleDetailedTime', function () {
describe('ToggleDetailedTime', () => {
global.Game = Game;
beforeEach(function () {
beforeEach(() => {
ToggleDetailedTime();
});
describe('DetailedTime = 0', function () {
before(function () {
describe('DetailedTime = 0', () => {
before(() => {
CMOptions.DetailedTime = 0;
BackupFunctions.sayTime = 'BackupFunctions.sayTime';
});
it('Set correct time function', function () {
it('Set correct time function', () => {
assert.equal(Game.sayTime, 'BackupFunctions.sayTime');
});
});
describe('DetailedTime = 1', function () {
before(function () {
describe('DetailedTime = 1', () => {
before(() => {
CMOptions.DetailedTime = 1;
});
it('Set correct time function', function () {
it('Set correct time function', () => {
assert.equal(Game.sayTime.name, 'CMSayTime');
});
});