Skip to content

Commit 16747e8

Browse files
committed
Fix tests
1 parent 0617048 commit 16747e8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,13 @@ suite('tracked-controls-webxr', function () {
6969
test('attached to the wrist joint', function (done) {
7070
var boxEl = document.createElement('a-box');
7171
el.addEventListener('child-attached', function () {
72+
assert.ok(el.components['hand-tracking-controls'].wristObject3D);
7273
assert.equal(boxEl.object3D.parent, el.components['hand-tracking-controls'].wristObject3D);
7374
done();
7475
});
75-
el.addEventListener('model-loaded', function () {
76-
assert.ok(el.components['hand-tracking-controls'].wristObject3D);
77-
el.appendChild(boxEl);
78-
});
7976
el.setAttribute('hand-tracking-controls', {hand: 'left'});
8077
el.components['hand-tracking-controls'].checkIfControllerPresent();
78+
el.appendChild(boxEl);
8179
});
8280
});
8381

0 commit comments

Comments
 (0)