mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
[Style] Test config is JSLint approved
This commit is contained in:
parent
3fe9170c7d
commit
ee34b74ca1
@ -1,3 +1,4 @@
|
||||
/*global module*/
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
|
||||
|
11
test-main.js
11
test-main.js
@ -1,3 +1,4 @@
|
||||
/*global require,window*/
|
||||
var allTestFiles = [];
|
||||
var TEST_REGEXP = /(Spec)\.js$/;
|
||||
|
||||
@ -12,7 +13,7 @@ Object.keys(window.__karma__.files).forEach(function(file) {
|
||||
}
|
||||
});
|
||||
|
||||
// We will be handling es6-promise loading with a shim.
|
||||
// Force es6-promise to load.
|
||||
allTestFiles.unshift('es6-promise');
|
||||
|
||||
require.config({
|
||||
@ -23,14 +24,6 @@ require.config({
|
||||
'es6-promise': 'platform/framework/lib/es6-promise-2.0.0.min',
|
||||
'moment-duration-format': 'warp/clock/lib/moment-duration-format'
|
||||
},
|
||||
shim: {
|
||||
'es6-promise': {
|
||||
init: function () {
|
||||
console.log('I was inited!');
|
||||
window.Promise = window.Promise || ES6Promise.Promise;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// dynamically load all test files
|
||||
deps: allTestFiles,
|
||||
|
Loading…
x
Reference in New Issue
Block a user