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 56134e2 commit 49334bfCopy full SHA for 49334bf
lib/_patch/qunit-plugin.js
@@ -1,7 +1,12 @@
1
// For logging assertions on the console, here's what grunt-contrib-qunit uses:
2
// https://github.com/gruntjs/grunt-contrib-qunit/blob/784597023e7235337ca9c0651aa45124a2d72341/tasks/qunit.js#L45
3
-(function() {
4
-
+(function (factory) {
+ if (typeof define === 'function' && define.amd) {
5
+ require(['qunit'], factory);
6
+ } else {
7
+ factory(QUnit);
8
+ }
9
+}(function(QUnit) {
10
var failedAssertions = [];
11
var options,
12
currentModule,
@@ -54,5 +59,4 @@
54
59
results.url = window.location.pathname;
55
60
BrowserStack.post("/_report", results, function(){});
56
61
});
57
58
-})();
62
+}));
0 commit comments