Pull to a separate repo and use karmatic for tests

This commit is contained in:
Timothy Farrell 2019-07-24 08:22:04 -05:00
parent 01035e3afa
commit e0f3cfad59
4 changed files with 7433 additions and 4 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
coverage
node_modules

7417
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
} }
} }

View File

@ -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([