mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
* turn on lint tests * remove tsc * fix errors in src/utils/hashes * fix linter errors in src/utils * fix lint issues in test/ * resolve lint issues in src/client * resolve dependency cycle * resolve other linting issues in src/models * resolve rest of linting issues * fix tests * fix linting errors in test/integration * fix rest of linting issues * fix test name
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)
|
|
})
|
|
})
|