Use CookieMonsterFramework for save/load, infoMenu
This commit is contained in:
@@ -2,7 +2,6 @@ import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { l } from '../../GlobalsForTesting';
|
||||
|
||||
import { CMOptions } from '../../../src/Config/VariablesAndData';
|
||||
import ToggleSectionHideButtons from '../../../src/Config/Toggles/ToggleSectionHideButtons';
|
||||
|
||||
describe('ToggleSectionHideButtons', () => {
|
||||
@@ -15,7 +14,7 @@ describe('ToggleSectionHideButtons', () => {
|
||||
|
||||
describe('HideSectionsButtons = 0', () => {
|
||||
before(() => {
|
||||
CMOptions.HideSectionsButtons = 0;
|
||||
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.HideSectionsButtons = 0;
|
||||
});
|
||||
it('Toggle style correctly', () => {
|
||||
assert.equal(domids.CMSectionHidButtons.style.display, 'none'); // eslint-disable-line no-undef
|
||||
@@ -23,7 +22,7 @@ describe('ToggleSectionHideButtons', () => {
|
||||
});
|
||||
describe('HideSectionsButtons = 1', () => {
|
||||
before(() => {
|
||||
CMOptions.HideSectionsButtons = 1;
|
||||
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.HideSectionsButtons = 1;
|
||||
});
|
||||
it('Toggle style correctly', () => {
|
||||
assert.equal(domids.CMSectionHidButtons.style.display, ''); // eslint-disable-line no-undef
|
||||
|
||||
Reference in New Issue
Block a user