mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
chore: rename test files (#2181)
This commit is contained in:
15
packages/xrpl/test/client/getLedgerIndex.test.ts
Normal file
15
packages/xrpl/test/client/getLedgerIndex.test.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import rippled from '../fixtures/rippled'
|
||||
import { setupClient, teardownClient } from '../setupClient'
|
||||
|
||||
describe('client.getLedgerIndex', function () {
|
||||
beforeEach(setupClient)
|
||||
afterEach(teardownClient)
|
||||
|
||||
it('getLedgerIndex', async function () {
|
||||
this.mockRippled.addResponse('ledger', rippled.ledger.normal)
|
||||
const ledgerIndex = await this.client.getLedgerIndex()
|
||||
assert.strictEqual(ledgerIndex, 9038214)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user