-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(project): bump dev dependencies
+ karma@1 - chai-spies + sinon, sinon-chai
- Loading branch information
Showing
13 changed files
with
93 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
var chai = require('chai'); | ||
var spies = require('chai-spies'); | ||
var sinonChai = require('sinon-chai'); | ||
|
||
chai.use(spies); | ||
chai.use(sinonChai); | ||
|
||
// expose expect as global | ||
global.expect = chai.expect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
'use strict'; | ||
|
||
var base = require('./single-run.conf'); | ||
var configure = require('./configure'); | ||
|
||
module.exports = function(karma) { | ||
base(karma); | ||
var singleRun = require('./single-run.conf'); | ||
|
||
module.exports = configure(singleRun, function(karma) { | ||
|
||
karma.set({ | ||
singleRun: false, | ||
autoWatch: true | ||
}); | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = function() { | ||
|
||
// hooks | ||
var hooks = Array.prototype.slice.call(arguments); | ||
|
||
// actual config fn | ||
return function(karma) { | ||
|
||
var opts = {}; | ||
|
||
var fakeKarma = { | ||
set: function(props) { | ||
opts = Object.assign(opts, props); | ||
} | ||
}; | ||
|
||
hooks.forEach(function(h) { | ||
h(fakeKarma); | ||
}); | ||
|
||
karma.set(opts); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
'use strict'; | ||
|
||
var base = require('./error.conf'); | ||
var configure = require('./configure'); | ||
|
||
module.exports = function(karma) { | ||
var error = require('./error.conf'); | ||
|
||
base(karma); | ||
module.exports = configure(error, function(karma) { | ||
|
||
karma.set({ | ||
files: [ | ||
'test/error/dependencyErrorSpec.js' | ||
] | ||
}); | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
'use strict'; | ||
|
||
var base = require('./error.conf'); | ||
var configure = require('./configure'); | ||
|
||
module.exports = function(karma) { | ||
var error = require('./error.conf'); | ||
|
||
base(karma); | ||
module.exports = configure(error, function(karma) { | ||
|
||
karma.set({ | ||
files: [ | ||
'test/error/testErrorSpec.js' | ||
] | ||
}); | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters