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