mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 11:45:49 +00:00
25 lines
573 B
TypeScript
25 lines
573 B
TypeScript
import { assert } from 'chai'
|
|
|
|
import {
|
|
setupClient,
|
|
teardownClient,
|
|
type XrplTestContext,
|
|
} from '../setupClient'
|
|
|
|
describe('client.isConnected', function () {
|
|
let testContext: XrplTestContext
|
|
|
|
beforeEach(async () => {
|
|
testContext = await setupClient()
|
|
})
|
|
afterEach(async () => {
|
|
await teardownClient(testContext)
|
|
})
|
|
|
|
it('disconnect & isConnected', async function () {
|
|
assert.strictEqual(testContext.client.isConnected(), true)
|
|
await testContext.client.disconnect()
|
|
assert.strictEqual(testContext.client.isConnected(), false)
|
|
})
|
|
})
|