mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
* lint broadcastClient * lint client * fix most of connection * remove unused files * lint mockRippled * lint mockRippledTest * lint runClientTests * lint setupClient * lint setupClientWeb * lint shamap * lint testUtils * resolve tsc issues * Fix tests * lint rest of connection * respond to comments
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
import { assert } from 'chai'
|
|
|
|
import { setupClient, teardownClient } from '../setupClient'
|
|
|
|
describe('client.isConnected', function () {
|
|
beforeEach(setupClient)
|
|
afterEach(teardownClient)
|
|
|
|
it('disconnect & isConnected', async function () {
|
|
assert.strictEqual(this.client.isConnected(), true)
|
|
await this.client.disconnect()
|
|
assert.strictEqual(this.client.isConnected(), false)
|
|
})
|
|
})
|