Defines setInterval/setTimeout on faked globalThis in unit test

This commit is contained in:
Henning Dieterichs 2024-08-29 17:45:22 +02:00 committed by Henning Dieterichs
parent b31d22b9ee
commit f262e8f931
3 changed files with 11 additions and 9 deletions

View file

@ -35,7 +35,9 @@ global.window = {
matches: false,
addEventListener: function () {}
};
}
},
setInterval: function () {},
setTimeout: function () {}
};
requirejs(