Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Update self-collider error pattern in particle-collision test (issue #653)

Nguyen Xuan An4c54fedefa59
diff --git a/tests/particle-collision.test.js b/tests/particle-collision.test.js
index 9d83fa92..ff5c378a 100644
--- a/tests/particle-collision.test.js
+++ b/tests/particle-collision.test.js
@@ -143,7 +143,7 @@ test('collision input is validated and the capabilities describe it', () => {
rejects({ bounce: 1.5 }, /bounce/);
rejects({ friction: -1 }, /friction/);
rejects({ colliders: ['ghost'] }, /particles\.systems\[0\]\.colliders\[0\]: got "ghost"; expected the ID of a node in the recipe/);
- rejects({ colliders: ['sparks'] }, /own collider/);
+ rejects({ colliders: ['sparks'] }, /particles\.systems\[0\]\.colliders: got \["sparks"\]; expected node IDs other than the system/);
rejects({ colliders: 'slab' }, /colliders/);
rejects({ alpha: [0, 2] }, /alpha/);
rejects({ alpha: 'clear' }, /alpha/);