Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Dec 5, 2023
1 parent 0617048 commit 16747e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/components/hand-tracking-controls.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,13 @@ suite('tracked-controls-webxr', function () {
test('attached to the wrist joint', function (done) {
var boxEl = document.createElement('a-box');
el.addEventListener('child-attached', function () {
assert.ok(el.components['hand-tracking-controls'].wristObject3D);
assert.equal(boxEl.object3D.parent, el.components['hand-tracking-controls'].wristObject3D);
done();
});
el.addEventListener('model-loaded', function () {
assert.ok(el.components['hand-tracking-controls'].wristObject3D);
el.appendChild(boxEl);
});
el.setAttribute('hand-tracking-controls', {hand: 'left'});
el.components['hand-tracking-controls'].checkIfControllerPresent();
el.appendChild(boxEl);
});
});

Expand Down

0 comments on commit 16747e8

Please sign in to comment.