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