mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
chore: rename test files (#2181)
This commit is contained in:
24
packages/xrpl/test/client/constructor.test.ts
Normal file
24
packages/xrpl/test/client/constructor.test.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { assert } from 'chai'
|
||||
import { Client } from 'xrpl-local'
|
||||
|
||||
describe('client constructor', function () {
|
||||
it('Client - implicit server port', function () {
|
||||
// eslint-disable-next-line no-new -- Testing constructor
|
||||
new Client('wss://s1.ripple.com')
|
||||
})
|
||||
|
||||
it('Client invalid options', function () {
|
||||
// @ts-expect-error - This is intentionally invalid
|
||||
assert.throws(() => new Client({ invalid: true }))
|
||||
})
|
||||
|
||||
it('Client valid options', function () {
|
||||
const client = new Client('wss://s:1')
|
||||
const privateConnectionUrl = client.url
|
||||
assert.deepEqual(privateConnectionUrl, 'wss://s:1')
|
||||
})
|
||||
|
||||
it('Client invalid server uri', function () {
|
||||
assert.throws(() => new Client('wss//s:1'))
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user