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

@@ -5,36 +5,36 @@ import { l, Game } from '../../GlobalsForTesting';
import { CMOptions } from '../../../src/Config/VariablesAndData';
import ToggleUpgradeBarAndColor from '../../../src/Config/Toggles/ToggleUpgradeBarAndColour';
describe('ToggleUpgradeBarAndColor', function () {
describe('ToggleUpgradeBarAndColor', () => {
global.l = l;
global.Game = Game;
beforeEach(function () {
beforeEach(() => {
global.domids = {};
ToggleUpgradeBarAndColor();
});
describe('UpBarColor = 0', function () {
before(function () {
describe('UpBarColor = 0', () => {
before(() => {
CMOptions.UpBarColor = 0;
});
it('Toggle style correctly', function () {
it('Toggle style correctly', () => {
assert.equal(domids.CMUpgradeBar.style.display, 'none'); // eslint-disable-line no-undef
});
});
describe('UpBarColor = 1', function () {
before(function () {
describe('UpBarColor = 1', () => {
before(() => {
CMOptions.UpBarColor = 1;
});
it('Toggle style correctly', function () {
it('Toggle style correctly', () => {
assert.equal(domids.CMUpgradeBar.style.display, ''); // eslint-disable-line no-undef
});
});
describe('UpBarColor = 2', function () {
before(function () {
describe('UpBarColor = 2', () => {
before(() => {
CMOptions.UpBarColor = 2;
});
it('Toggle style correctly', function () {
it('Toggle style correctly', () => {
assert.equal(domids.CMUpgradeBar.style.display, 'none'); // eslint-disable-line no-undef
});
});