Skip to content

Commit 70f0899

Browse files
committed
Try to fix tests on Github. Succeed on local
1 parent a4aa772 commit 70f0899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/components/hand-tracking-controls.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ suite('tracked-controls-webxr', function () {
6868
suite('children entities', function () {
6969
test('attached to the wrist joint', function (done) {
7070
var boxEl = document.createElement('a-box');
71-
el.setAttribute('hand-tracking-controls', {hand: 'left'});
72-
el.components['hand-tracking-controls'].checkIfControllerPresent();
7371
el.addEventListener('child-attached', function () {
7472
assert.equal(boxEl.object3D.parent, el.components['hand-tracking-controls'].wristObject3D);
7573
done();
@@ -78,6 +76,8 @@ suite('tracked-controls-webxr', function () {
7876
assert.ok(el.components['hand-tracking-controls'].wristObject3D);
7977
el.appendChild(boxEl);
8078
});
79+
el.setAttribute('hand-tracking-controls', {hand: 'left'});
80+
el.components['hand-tracking-controls'].checkIfControllerPresent();
8181
});
8282
});
8383

0 commit comments

Comments
 (0)