[Style] Test config is JSLint approved

This commit is contained in:
larkin 2015-07-24 16:21:15 -07:00
parent 3fe9170c7d
commit ee34b74ca1
2 changed files with 3 additions and 9 deletions

View File

@ -1,3 +1,4 @@
/*global module*/
module.exports = function(config) {
config.set({

View File

@ -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,