Skip to content

Commit 2c70c80

Browse files
committed
test(url): added unit tests for url parsing class
1 parent 5b3a42a commit 2c70c80

8 files changed

Lines changed: 535 additions & 356 deletions

File tree

Gruntfile.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@ module.exports = function (grunt) {
231231
release: {
232232
src: 'CHANGELOG.md'
233233
}
234+
},
235+
236+
mocha: {
237+
test: {
238+
src: ['test/testrunner.html'],
239+
options:{
240+
run:true
241+
}
242+
}
234243
}
235244
});
236245

@@ -249,5 +258,7 @@ module.exports = function (grunt) {
249258
}
250259
grunt.log.ok('Published to NPM ');
251260
});
252-
})
261+
});
262+
263+
grunt.registerTask("test",["mocha"]);
253264
};

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@
5959
"grunt-contrib-watch": "^0.6.1",
6060
"grunt-conventional-changelog": "^5.0.0",
6161
"grunt-eslint": "^17.3.1",
62+
"grunt-mocha": "^0.4.15",
6263
"grunt-postcss": "^0.7.1",
6364
"grunt-retinafy": "^0.1.5",
6465
"grunt-rollup": "^0.6.1",
6566
"grunt-spritesmith": "^6.1.0",
6667
"grunt-string-replace": "^1.2.1",
68+
"jsdom": "^7.2.2",
6769
"load-grunt-tasks": "^3.4.0",
6870
"mocha": "^2.3.4",
6971
"phantomjs": "^1.9.19",
@@ -78,7 +80,7 @@
7880
},
7981
"scripts": {
8082
"commit": "git-cz",
81-
"test": "rollup -c && mocha test/bundle.test.js"
83+
"test": "rollup -c && grunt test"
8284
},
8385
"config": {
8486
"commitizen": {

0 commit comments

Comments
 (0)