From 513c5d0b303dc4fd7f9d161f5dc6bd381228f52f Mon Sep 17 00:00:00 2001 From: Diego Marcos Segura Date: Wed, 8 Nov 2023 23:12:28 -0800 Subject: [PATCH] Fix tests --- tests/components/hand-tracking-controls.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/components/hand-tracking-controls.test.js b/tests/components/hand-tracking-controls.test.js index af5d98ccadd..dc593e8d9de 100644 --- a/tests/components/hand-tracking-controls.test.js +++ b/tests/components/hand-tracking-controls.test.js @@ -86,6 +86,7 @@ suite('tracked-controls-webxr', function () { el.components['hand-tracking-controls'].checkIfControllerPresent(); el.components['hand-tracking-controls'].isPinched = true; thumbMatrix.setPosition(0, 0, 10); + el.components['hand-tracking-controls'].pinchDistance = 1; el.components['hand-tracking-controls'].tick(); el.components['hand-tracking-controls'].detectPinch(); assert.equal(emitSpy.getCalls()[0].args[0], 'pinchended');