mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
feat: Jest Test Runner (#2170)
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import { assert } from 'chai'
|
||||
import { XrplError, NotFoundError } from 'xrpl-local'
|
||||
|
||||
import { setupClient, teardownClient } from '../setupClient'
|
||||
import { XrplError, NotFoundError } from '../../src'
|
||||
|
||||
describe('client errors', function () {
|
||||
beforeEach(setupClient)
|
||||
afterEach(teardownClient)
|
||||
|
||||
it('XrplError with data', async function () {
|
||||
const error = new XrplError('_message_', '_data_')
|
||||
assert.strictEqual(error.toString(), "[XrplError(_message_, '_data_')]")
|
||||
|
||||
Reference in New Issue
Block a user