Skip to content

Commit

Permalink
test(config): get rid off warnings
Browse files Browse the repository at this point in the history
These tests were using very old config syntax and relying on autocorrection. After changing the logger config, these were shown during unit tests.
  • Loading branch information
vojtajina committed May 6, 2013
1 parent bd9ad93 commit 80fe6ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/config.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe 'config', ->
mocks = {}
mocks.process = exit: sinon.spy()
mockConfigs = {
'/home/config1.js': wrapCfg({basePath: 'base', reporter: 'dots'}),
'/home/config1.js': wrapCfg({basePath: 'base', reporters: ['dots']}),
'/home/config2.js': wrapCfg({basePath: '/abs/base'}),
'/home/config3.js': wrapCfg({files: ['one.js', 'sub/two.js']}),
'/home/config4.js': wrapCfg({port: 123, autoWatch: true, basePath: '/abs/base'}),
Expand Down Expand Up @@ -170,13 +170,13 @@ describe 'config', ->

expect(config.port).to.equal 456
expect(config.basePath).to.equal resolveWinPath('/home/base')
expect(config.reporters).to.deep.equal ['dots']

# defaults
expect(config.files).to.deep.equal []
expect(config.exclude).to.deep.equal [resolveWinPath('/home/config1.js')]
expect(config.logLevel).to.exist
expect(config.autoWatch).to.equal false
expect(config.reporters).to.deep.equal ['progress']
expect(config.singleRun).to.equal false
expect(config.browsers).to.deep.equal []
expect(config.reportSlowerThan).to.equal 0
Expand Down

0 comments on commit 80fe6ce

Please sign in to comment.