fix constructor, lint

This commit is contained in:
AlecM33
2022-03-01 21:21:24 -05:00
parent 6dd9095af3
commit a2888f9d1e
3 changed files with 7 additions and 7 deletions

View File

@@ -13,10 +13,10 @@ describe('GameManager', () => {
beforeAll(() => {
spyOn(logger, 'debug');
spyOn(logger, 'error');
gameManager = new GameManager(logger, globals.ENVIRONMENT.PRODUCTION).getInstance();
const inObj = { emit: () => {} };
namespace = { in: () => { return inObj; } };
gameManager.namespace = namespace;
gameManager = new GameManager(logger, globals.ENVIRONMENT.PRODUCTION, namespace).getInstance();
});
beforeEach(() => {