| OLD | NEW |
| 1 // Karma configuration | 1 // Karma configuration |
| 2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT) | 2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT) |
| 3 | 3 |
| 4 module.exports = function(config) { | 4 module.exports = function(config) { |
| 5 config.set({ | 5 config.set({ |
| 6 | 6 |
| 7 // base path that will be used to resolve all patterns (eg. files, exclude) | 7 // base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 basePath: '.', | 8 basePath: '.', |
| 9 | 9 |
| 10 // frameworks to use | 10 // frameworks to use |
| 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter | 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 12 frameworks: ['mocha'], | 12 frameworks: ['mocha'], |
| 13 | 13 |
| 14 // mocha setup | 14 // mocha setup |
| 15 client: { | 15 client: { |
| 16 mocha: { | 16 mocha: { |
| 17 ui: 'bdd' | 17 ui: 'bdd', |
| 18 globals: ['net'] |
| 18 } | 19 } |
| 19 }, | 20 }, |
| 20 | 21 |
| 21 // list of files / patterns to load in the browser | 22 // list of files / patterns to load in the browser |
| 22 files: [ | 23 files: [ |
| 23 'bower_components/platform/platform.js', | 24 'bower_components/platform/platform.js', |
| 24 'test/karma_loader.html', | 25 'test/karma_loader.html', |
| 25 'bower_components/chai/chai.js', | 26 'bower_components/chai/chai.js', |
| 26 'bower_components/sugar/release/sugar-full.development.js', | 27 'bower_components/sugar/release/sugar-full.development.js', |
| 27 {pattern: 'bower_components/**/*.{js,html,css,map}', included: false}, | 28 {pattern: 'bower_components/**/*.{js,html,css,map}', included: false}, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Continuous Integration mode | 72 // Continuous Integration mode |
| 72 // if true, Karma captures browsers, runs the tests and exits | 73 // if true, Karma captures browsers, runs the tests and exits |
| 73 singleRun: false, | 74 singleRun: false, |
| 74 | 75 |
| 75 plugins: [ | 76 plugins: [ |
| 76 'karma-mocha', | 77 'karma-mocha', |
| 77 'karma-chrome-launcher' | 78 'karma-chrome-launcher' |
| 78 ] | 79 ] |
| 79 }); | 80 }); |
| 80 }; | 81 }; |
| OLD | NEW |