We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d757116 commit 86094e3Copy full SHA for 86094e3
main-view-model.ts
@@ -371,8 +371,12 @@ export class TestBrokerViewModel extends observable.Observable {
371
global.require = function() {
372
throw Error();
373
}
374
-
375
global.window = global;
+ } else if (url.indexOf('qunit.js') !== -1) {
376
+ global.define = function (factory) {
377
+ global.QUnit = factory();
378
+ }
379
+ global.define.amd = true;
380
381
382
@@ -381,6 +385,8 @@ export class TestBrokerViewModel extends observable.Observable {
385
delete global.window;
386
global.require = global.__shim_require;
383
387
delete global.__shim_require;
388
389
+ delete global.define;
384
390
391
392
0 commit comments