Linting in tests
This commit is contained in:
@@ -5,28 +5,28 @@ import { l, Game } from '../../GlobalsForTesting';
|
||||
import ToggleBotBar from '../../../src/Config/Toggles/ToggleBotBar';
|
||||
import { CMOptions } from '../../../src/Config/VariablesAndData';
|
||||
|
||||
describe('ToggleBotBar', function () {
|
||||
describe('ToggleBotBar', () => {
|
||||
global.l = l;
|
||||
global.Game = Game;
|
||||
|
||||
beforeEach(function () {
|
||||
beforeEach(() => {
|
||||
global.domids = {};
|
||||
ToggleBotBar();
|
||||
});
|
||||
|
||||
describe('BotBar = 0', function () {
|
||||
before(function () {
|
||||
describe('BotBar = 0', () => {
|
||||
before(() => {
|
||||
CMOptions.BotBar = 0;
|
||||
});
|
||||
it('Toggle style correctly', function () {
|
||||
it('Toggle style correctly', () => {
|
||||
assert.equal(domids.CMBotBar.style.display, 'none'); // eslint-disable-line no-undef
|
||||
});
|
||||
});
|
||||
describe('BotBar = 1', function () {
|
||||
before(function () {
|
||||
describe('BotBar = 1', () => {
|
||||
before(() => {
|
||||
CMOptions.BotBar = 1;
|
||||
});
|
||||
it('Toggle style correctly', function () {
|
||||
it('Toggle style correctly', () => {
|
||||
assert.equal(domids.CMBotBar.style.display, ''); // eslint-disable-line no-undef
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user