mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
REFACTOR: Import QUnit
and related helpers rather than globals
We used many global functions to handle tests when they should be imported like other libraries in our application. This also gets us closer to the way Ember CLI prefers our tests to be laid out.
This commit is contained in:
@ -153,6 +153,19 @@ var define, requirejs;
|
||||
pretender: {
|
||||
default: window.Pretender,
|
||||
},
|
||||
"ember-qunit": {
|
||||
moduleFor: window.moduleFor,
|
||||
moduleForComponent: window.moduleForComponent,
|
||||
},
|
||||
qunit:
|
||||
typeof window.QUnit !== "undefined"
|
||||
? {
|
||||
default: window.QUnit,
|
||||
test: window.QUnit.test,
|
||||
skip: window.QUnit.skip,
|
||||
module: window.QUnit.module,
|
||||
}
|
||||
: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user