diff --git a/app/engine/engine.test.js b/app/engine/engine.test.js index 03497c6..944b38c 100644 --- a/app/engine/engine.test.js +++ b/app/engine/engine.test.js @@ -22,7 +22,7 @@ test('visibility-based updates', async () => { // Tick and get update. Should be a partial update. engine.tick(1); expect(engine.updateFor(undefined)) - .to.deep.equal({ + .to.deep.include({ 2: { Position: {x: (RESOLUTION.x * 1.5) + 32 - 1}, VisibleAabb: { @@ -34,10 +34,10 @@ test('visibility-based updates', async () => { // Tick and get update. Should remove the entity. engine.tick(1); expect(engine.updateFor(undefined)) - .to.deep.equal({2: false}); + .to.deep.include({2: false}); // Aim back toward visible area and tick. Should be a full update for that entity. entity.Momentum.x = -1; engine.tick(1); expect(engine.updateFor(undefined)) - .to.deep.equal({2: ecs.get(2).toJSON()}); + .to.deep.include({2: ecs.get(2).toJSON()}); });