We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1668b85 commit 1f2557cCopy full SHA for 1f2557c
src/world.test.ts
@@ -79,7 +79,7 @@ describe("World", () => {
79
world.delete(entity, positionComponent);
80
world.sync();
81
expect(world.has(entity, positionComponent)).toBe(false);
82
- expect(() => world.get(entity, positionComponent)).toThrow(`Component type 22 is not in this archetype`);
+ expect(() => world.get(entity, positionComponent)).toThrow(/^Component type \d+ is not in this archetype$/);
83
});
84
85
it("should throw error when removing invalid component type", () => {
0 commit comments