Skip to content

Commit

Permalink
chore(example): add test case for source inclusion
Browse files Browse the repository at this point in the history
This commit adds a manual test case that simulates accidently including
source files into the `files` and `preprocessor` section of the karma
configuration file.

Related to #52
  • Loading branch information
nikku committed Nov 19, 2014
1 parent 96ecb39 commit c9d9d78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ module.exports = function(karma) {

files: [
'vendor/external.js',
// source file, accidently included
// (there is usually no reason to do this)
'lib/a.js',
'test/**/*Spec.js'
],

reporters: [ 'dots' ],

preprocessors: {
'lib/*.js': [ 'browserify' ],
'test/**/*Spec.js': [ 'browserify' ]
},

Expand Down

0 comments on commit c9d9d78

Please sign in to comment.