There was an error while loading. Please reload this page.
1 parent c16cd8f commit 374ae6cCopy full SHA for 374ae6c
tests/__init.test.js
@@ -82,7 +82,7 @@ window.addEventListener('unhandledrejection', event => {
82
pendingErrorNotice = 'An uncaught promise rejection occurred between tests';
83
});
84
85
-teardown(function (done) {
+teardown(function () {
86
// Clean up any attached elements.
87
var attachedEls = ['canvas', 'a-assets', 'a-scene'];
88
var els = document.querySelectorAll(attachedEls.join(','));
@@ -93,11 +93,6 @@ teardown(function (done) {
93
delete AFRAME.components.test;
94
delete AFRAME.systems.test;
95
96
- // Allow detachedCallbacks to clean themselves up.
97
- setTimeout(function () {
98
- done();
99
- });
100
-
101
if (pendingError) {
102
console.error(pendingErrorNotice);
103
throw pendingError;
0 commit comments