Skip to content

Commit

Permalink
Try to fix tests on Github. Succeed on local
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Dec 1, 2023
1 parent a4aa772 commit 70f0899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/components/hand-tracking-controls.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ suite('tracked-controls-webxr', function () {
suite('children entities', function () {
test('attached to the wrist joint', function (done) {
var boxEl = document.createElement('a-box');
el.setAttribute('hand-tracking-controls', {hand: 'left'});
el.components['hand-tracking-controls'].checkIfControllerPresent();
el.addEventListener('child-attached', function () {
assert.equal(boxEl.object3D.parent, el.components['hand-tracking-controls'].wristObject3D);
done();
Expand All @@ -78,6 +76,8 @@ suite('tracked-controls-webxr', 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();
});
});

Expand Down

0 comments on commit 70f0899

Please sign in to comment.