karma-sinon-chai-latest
Version:
The latest sinon-chai from NPM for Karma
16 lines (12 loc) • 575 B
JavaScript
var path = require('path');
var pattern = function(file) {
return {pattern: file, included: true, served: true, watched: false};
};
var framework = function(files) {
files.unshift(pattern(path.join(__dirname, 'adapter.js')));
files.unshift(pattern(path.resolve(require.resolve('sinon-chai'))));
files.unshift(pattern(path.resolve(require.resolve('chai'), '../chai.js')));
files.unshift(pattern(path.resolve(require.resolve('sinon'), '../../sinon.js')));
};
framework.$inject = ['config.files'];
module.exports = {'framework:sinon-chai': ['factory', framework]};