Pull to a separate repo and use karmatic for tests
This commit is contained in:
parent
01035e3afa
commit
e0f3cfad59
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
coverage
|
||||||
|
node_modules
|
||||||
|
|
||||||
7417
package-lock.json
generated
Normal file
7417
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
@ -7,8 +7,7 @@
|
|||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node ../../bin/runTests.js ./",
|
"test": "karmatic"
|
||||||
"pre-commit": "npm run test"
|
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"router"
|
"router"
|
||||||
@ -16,6 +15,16 @@
|
|||||||
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"trimkit": "^1.1.0"
|
"trimkit": "^1.0.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"husky": "^3.0.1",
|
||||||
|
"karmatic": "^1.3.1",
|
||||||
|
"webpack": "^4.37.0"
|
||||||
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "npm run test"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Router } from '../src/index.js';
|
import { Router } from './index.js';
|
||||||
|
|
||||||
describe('router.href builds urls', () => {
|
describe('router.href builds urls', () => {
|
||||||
const router = Router([
|
const router = Router([
|
||||||
Loading…
x
Reference in New Issue
Block a user