Tests: Add karma config and dependencies
This commit is contained in:
parent
7b93c770d4
commit
b456d9a11a
|
@ -85,6 +85,10 @@ gulp.task('browser-test', shell.task([
|
|||
'find test/ -type f -name "*.js" | xargs browserify -o ./browser/tests.js'
|
||||
]));
|
||||
|
||||
gulp.task('karma', shell.task([
|
||||
'./node_modules/karma/bin/karma start karma.conf.js'
|
||||
]));
|
||||
|
||||
gulp.task('minify', function() {
|
||||
return gulp.src('dist/bitcore.js')
|
||||
.pipe(closureCompiler({
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
// karma.conf.js
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
frameworks: ['mocha'],
|
||||
files: [
|
||||
'browser/tests.js'
|
||||
]
|
||||
});
|
||||
};
|
|
@ -92,6 +92,8 @@
|
|||
"lodash": "^2.4.1",
|
||||
"mocha": "~2.0.1",
|
||||
"run-sequence": "^1.0.2"
|
||||
"karma": "^0.12.28",
|
||||
"karma-mocha": "^0.1.9",
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue