karma.conf.js in angularjs-rails-resource-0.2.0 vs karma.conf.js in angularjs-rails-resource-0.2.1
- old
+ new
@@ -1,22 +1,22 @@
-basePath = './';
-
-files = [
- JASMINE,
- JASMINE_ADAPTER,
- 'test/lib/angular/angular.js',
- 'test/lib/angular/angular-bootstrap.js',
- 'test/lib/angular/angular-loader.js',
- 'test/lib/angular/angular-sanitize.js',
- 'test/lib/angular/angular-mocks.js',
- 'vendor/assets/javascripts/**/*.js',
- 'test/unit/**/*.js'
-];
-
-autoWatch = true;
-
-browsers = ['Chrome'];
-
-junitReporter = {
- outputFile: 'test_out/unit.xml',
- suite: 'unit'
+module.exports = function(config) {
+ config.set({
+ basePath: '.',
+ autoWatch: true,
+ browsers: ['Chrome'],
+ frameworks: ['jasmine'],
+ reporters: ['progress', 'junit'],
+ files: [
+ 'test/lib/angular/angular.js',
+ 'test/lib/angular/angular-bootstrap.js',
+ 'test/lib/angular/angular-loader.js',
+ 'test/lib/angular/angular-sanitize.js',
+ 'test/lib/angular/angular-mocks.js',
+ 'vendor/assets/javascripts/**/*.js',
+ 'test/unit/**/*.js'
+ ],
+ junitReporter: {
+ outputFile: 'test_out/unit.xml',
+ suite: 'unit'
+ }
+ })
};
\ No newline at end of file