Katreque/TempoJS

Fix core tests on GameLoop

Opened this issue · 0 comments

The core tests from GameLoop are not working properly. The Sinon Spies calledOnce are returning false, even though the spied functions are called.

test('runGameIteration should work.', async (t) => {

test('runGameIteration should stop once stopGameIteration is called.', (t) => {

Maybe the spies are not being used properly or the runGameIteration function is not well structured.
Help is wanted since these tests assure the functioning of the engine.