1 | var path = require('path');
|
2 |
|
3 | var pattern = function(file) {
|
4 | return {pattern: file, included: true, served: true, watched: false};
|
5 | };
|
6 |
|
7 | var framework = function(files) {
|
8 | files.unshift(pattern(path.join(__dirname, 'adapter.js')));
|
9 | files.unshift(pattern(path.resolve(require.resolve('sinon-chai'))));
|
10 | files.unshift(pattern(path.resolve(require.resolve('chai'), '../chai.js')));
|
11 |
|
12 | files.unshift(pattern(path.join(__dirname, 'bower_components/sinonjs/sinon.js')));
|
13 | };
|
14 |
|
15 | framework.$inject = ['config.files'];
|
16 | module.exports = {'framework:sinon-chai': ['factory', framework]};
|