chore: removes unecessary files

This commit is contained in:
2026-04-23 23:14:21 -03:00
parent 90701eec3d
commit dda6942228
8 changed files with 0 additions and 184 deletions

View File

@@ -1,37 +0,0 @@
import { loop } from '../../src/main';
import { Game, Memory } from './mock';
import { assert } from 'chai';
describe('main', () => {
before(() => {
// runs before all test in this block
});
beforeEach(() => {
// runs before each test in this block
// @ts-ignore : allow adding Game to global
global.Game = _.clone(Game);
// @ts-ignore : allow adding Memory to global
global.Memory = _.clone(Memory);
});
it('should export a loop function', () => {
assert.isTrue(typeof loop === 'function');
});
it('should return void when called with no context', () => {
assert.isUndefined(loop());
});
it('Automatically delete memory of missing creeps', () => {
Memory.creeps.persistValue = 'any value';
Memory.creeps.notPersistValue = 'any value';
Game.creeps.persistValue = 'any value';
loop();
assert.isDefined(Memory.creeps.persistValue);
assert.isUndefined(Memory.creeps.notPersistValue);
});
});