From 547cd5a9b9aaa3ab20e57edaff6ca888e4bf368f Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 13 Jun 2024 23:51:06 -0500 Subject: [PATCH] fix: relax --- app/engine/engine.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()}); });