fix: relax
This commit is contained in:
parent
162a1f9b8a
commit
547cd5a9b9
|
@ -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()});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user