Skip to content

Commit

Permalink
Fix test for template karma-conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdy Dara committed Apr 23, 2015
1 parent 939c9dd commit 9d75e87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/template/test-karma-conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ describe('gulp-angular karma.conf template', function () {
it('should add files in list files for each js preprocessors', function() {
model.props.jsPreprocessor.key = 'none';
var result = karmaConf(model);
result.should.match(/conf\.paths\.src, '[^\s]*\.module\.js'/);
result.should.match(/conf\.paths\.src, '[^\s]*\.js'/);

model.props.jsPreprocessor.key = 'coffee';
result = karmaConf(model);
result.should.match(/conf\.paths\.tmp, '\/serve[^\s]*\.module\.js'/);
result.should.match(/conf\.paths\.tmp, '\/serve[^\s]*\.js'/);

model.props.jsPreprocessor.key = 'babel';
result = karmaConf(model);
result.should.match(/conf\.paths\.tmp, '\/serve\/app\/index\.js/);
result.should.match(/conf\.paths\.tmp, '\/serve\/app\/index\.module\.js/);
});

it('should add and configure angular filesort if needed', function() {
Expand Down

0 comments on commit 9d75e87

Please sign in to comment.