chore: add karma-sinon for stubbing

This commit is contained in:
Johannes Millan 2017-11-25 15:02:03 +01:00
parent 6ee0b40306
commit db3ee30dc2
4 changed files with 1596 additions and 486 deletions

View file

@ -32,6 +32,7 @@
"it": false,
"inject": false,
"expect": false,
"spyOn": false
"spyOn": false,
"sinon": false
}
}

View file

@ -1,14 +1,16 @@
// Karma configuration
'use strict';
module.exports = function (config) {
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
reportSlowerThan: 500,
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
frameworks: ['jasmine', 'sinon'],
// list of files / patterns to load in the browser
files: [
@ -58,6 +60,7 @@ module.exports = function (config) {
plugins: [
'karma-jasmine',
'karma-sinon',
//'karma-coverage',
'karma-phantomjs-launcher',
'karma-ng-html2js-preprocessor',

2070
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -111,6 +111,7 @@
"karma-jasmine": "latest",
"karma-ng-html2js-preprocessor": "latest",
"karma-phantomjs-launcher": "latest",
"karma-sinon": "^1.0.5",
"lazypipe": "latest",
"merge-stream": "latest",
"node-sass": "latest",
@ -118,6 +119,7 @@
"protractor": "latest",
"require-dir": "latest",
"run-sequence": "latest",
"sinon": "^4.1.2",
"uglify-save-license": "^0.4.1",
"wiredep": "latest",
"yargs": "latest"