mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
test: run address-codec tests in the browser (#2466)
Update tests to use jasmine compatible functions. This means changing `test` to `it`, `toStrictEqual` to `toEqual` (which is still strict), `toThrowError` to `toError`, and updating the param for toError to pass an `Error` object. Remove the need to specify --single-run.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
"prepublish": "npm run clean && npm run lint && npm run test && npm run test:browser && npm run build",
|
||||
"clean": "rm -rf ./dist ./coverage ./test/testCompiledForWeb tsconfig.build.tsbuildinfo",
|
||||
"test": "jest --verbose",
|
||||
"test:browser": "npm run build && npm run build:browserTests && karma start ./karma.config.js --single-run",
|
||||
"test:browser": "npm run build && npm run build:browserTests && karma start ./karma.config.js",
|
||||
"build": "run-s build:lib build:web",
|
||||
"build:lib": "tsc --build tsconfig.build.json",
|
||||
"build:web": "webpack",
|
||||
|
||||
Reference in New Issue
Block a user