mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-30 00:55:49 +00:00
chore: rename test files (#2181)
This commit is contained in:
19
packages/xrpl/test/client/errors.test.ts
Normal file
19
packages/xrpl/test/client/errors.test.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { assert } from 'chai'
|
||||
import { XrplError, NotFoundError } from 'xrpl-local'
|
||||
|
||||
import { setupClient, teardownClient } from '../setupClient'
|
||||
|
||||
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_')]")
|
||||
})
|
||||
|
||||
it('NotFoundError default message', async function () {
|
||||
const error = new NotFoundError()
|
||||
assert.strictEqual(error.toString(), '[NotFoundError(Not found)]')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user