Use CookieMonsterFramework for save/load, infoMenu

This commit is contained in:
Daniël van Noord
2021-07-11 10:21:16 +02:00
parent b959b3c024
commit c0e788b143
95 changed files with 809 additions and 675 deletions

View File

@@ -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