Skip to content

Commit

Permalink
fix(init): generate config with the new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Jul 2, 2013
1 parent 2e3ad87 commit 6b27fee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions config.tpl.coffee
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Karma configuration
# Generated on %DATE%

module.exports = (karma) ->
karma.configure
module.exports = (config) ->
config.set

# base path, that will be used to resolve all patterns, eg. files, exclude
basePath: '%BASE_PATH%'
Expand Down Expand Up @@ -34,8 +34,8 @@ module.exports = (karma) ->
colors: true

# level of logging
# possible values: karma.LOG_DISABLE || karma.LOG_ERROR || karma.LOG_WARN || karma.LOG_INFO || karma.LOG_DEBUG
logLevel: karma.LOG_INFO
# possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO

# enable / disable watching file and executing tests whenever any file changes
autoWatch: %AUTO_WATCH%
Expand Down
8 changes: 4 additions & 4 deletions config.tpl.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Karma configuration
// Generated on %DATE%

module.exports = function(karma) {
karma.configure({
module.exports = function(config) {
config.set({

// base path, that will be used to resolve files and exclude
basePath: '%BASE_PATH%',
Expand Down Expand Up @@ -42,8 +42,8 @@ module.exports = function(karma) {


// level of logging
// possible values: karma.LOG_DISABLE || karma.LOG_ERROR || karma.LOG_WARN || karma.LOG_INFO || karma.LOG_DEBUG
logLevel: karma.LOG_INFO,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,


// enable / disable watching file and executing tests whenever any file changes
Expand Down

0 comments on commit 6b27fee

Please sign in to comment.