UNPKG

karma-dojo

Version:

A Karma plugin. Adapter for Dojo Toolkit.

16 lines (12 loc) 531 B
var createPattern = function(path) { return {pattern: path, included: true, served: true, watched: false}; }; var initDojo = function(files) { files.unshift(createPattern(__dirname + '/inhibit.js')); files.push(createPattern(__dirname + '/dojo.js'));//dojo loader must be inserted at the end for custom dojoConfig to be considered files.push(createPattern(__dirname + '/adapter.js'));//karma heavy caching mechanism }; initDojo.$inject = ['config.files']; module.exports = { 'framework:dojo': ['factory', initDojo] };