1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Update grunt-contrib-qunit to latest version (#5530)

We needed to define the `qunit` module in the unit tests because there was a change in grunt-contrib-qunit 0.6.0 that breaks when you define an AMD loader. It expects that the AMD loader is also used to load QUnit, instead of just being used to support the tests, so if you don't define the qunit module it will just hang and do nothing. Luckily we have the helpers file to help us out here, since it allows us to globally define this module.
This commit is contained in:
Kevin Brown 2019-06-04 22:43:52 -04:00 committed by GitHub
parent 70ca392a43
commit 5d2fdd75b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,7 @@
"grunt-contrib-concat": "^1.0.1", "grunt-contrib-concat": "^1.0.1",
"grunt-contrib-connect": "^2.0.0", "grunt-contrib-connect": "^2.0.0",
"grunt-contrib-jshint": "^1.1.0", "grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-qunit": "^0.5.2", "grunt-contrib-qunit": "^1.3.0",
"grunt-contrib-requirejs": "^1.0.0", "grunt-contrib-requirejs": "^1.0.0",
"grunt-contrib-uglify": "~4.0.1", "grunt-contrib-uglify": "~4.0.1",
"grunt-contrib-watch": "~1.1.0", "grunt-contrib-watch": "~1.1.0",

View File

@ -44,3 +44,7 @@ QUnit.testStart(function(testDetails){
} }
}); });
}); });
define('qunit', function () {
return QUnit;
})