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 ToggleGCTimer from '../../../src/Config/Toggles/ToggleGCTimer';
|
||||
import { GCTimers } from '../../../src/Disp/VariablesAndData';
|
||||
import { CacheGoldenShimmersByID } from '../../../src/Cache/VariablesAndData';
|
||||
@@ -25,7 +24,7 @@ describe('ToggleGCTimer', () => {
|
||||
|
||||
describe('GCTimer = 0', () => {
|
||||
before(() => {
|
||||
CMOptions.GCTimer = 0;
|
||||
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.GCTimer = 0;
|
||||
});
|
||||
it('Toggle style correctly', () => {
|
||||
assert.equal(GCTimers[0].style.display, 'none');
|
||||
@@ -34,7 +33,7 @@ describe('ToggleGCTimer', () => {
|
||||
});
|
||||
describe('GCTimer = 1', () => {
|
||||
before(() => {
|
||||
CMOptions.GCTimer = 1;
|
||||
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.GCTimer = 1;
|
||||
});
|
||||
it('Toggle style correctly', () => {
|
||||
assert.equal(GCTimers[0].style.display, 'block');
|
||||
|
||||
Reference in New Issue
Block a user