2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Adding nodeunit

This commit is contained in:
Matt Zabriskie
2014-08-27 01:03:49 -06:00
parent 85e9330c8c
commit 0d0b837020
4 changed files with 11 additions and 5 deletions
+6 -2
View File
@@ -33,6 +33,10 @@ module.exports = function(grunt) {
}
},
nodeunit: {
all: ['test/unit/*.js']
},
webpack: generateWebpackConfig(),
watch: {
@@ -41,13 +45,13 @@ module.exports = function(grunt) {
tasks: ['build']
},
test: {
files: ['lib/**/*.js', 'specs/**/*.js'],
files: ['lib/**/*.js', 'test/**/*.js'],
tasks: ['test']
}
}
});
grunt.registerTask('test', ['webpack:global', 'karma:single']);
grunt.registerTask('test', ['webpack:global', 'nodeunit', 'karma:single']);
grunt.registerTask('build', ['webpack']);
grunt.registerTask('publish', ['clean', 'test', 'build', 'update_json']);