mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +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:
15
packages/ripple-address-codec/karma.config.js
Normal file
15
packages/ripple-address-codec/karma.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const baseKarmaConfig = require('../../karma.config')
|
||||
const webpackConfig = require('./test/webpack.config')
|
||||
delete webpackConfig.entry
|
||||
|
||||
module.exports = function (config) {
|
||||
baseKarmaConfig(config)
|
||||
|
||||
config.set({
|
||||
base: '',
|
||||
webpack: webpackConfig,
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
files: ['test/**/*.test.ts'],
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user