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

test: use mocha instead of nodeunit (#1655)

This commit is contained in:
Justin Beckwith
2018-07-05 22:41:13 -07:00
committed by GitHub
parent 0c4bf3cdbd
commit 98080381fa
4 changed files with 197 additions and 188 deletions
+8 -3
View File
@@ -65,8 +65,13 @@ module.exports = function(grunt) {
}
},
nodeunit: {
all: ['test/unit/**/*.js']
mochaTest: {
test: {
src: ['test/unit/**/*.js']
},
options: {
timeout: 30000,
},
},
watch: {
@@ -96,7 +101,7 @@ module.exports = function(grunt) {
grunt.file.write('bower.json', JSON.stringify(bower, null, 2));
});
grunt.registerTask('test', 'Run the jasmine and nodeunit tests', ['eslint', 'nodeunit', 'karma:single', 'ts']);
grunt.registerTask('test', 'Run the jasmine and mocha tests', ['eslint', 'mochaTest', 'karma:single', 'ts']);
grunt.registerTask('build', 'Run webpack and bundle the source', ['clean', 'webpack']);
grunt.registerTask('version', 'Sync version info for a release', ['usebanner', 'package2bower']);
};