OSDN Git Service

add the test case for node-sdk
[bytom/bytom-node-sdk.git] / test / config.js
1 /* eslint-env mocha */
2
3 const chai = require('chai')
4 const chaiAsPromised = require('chai-as-promised')
5 chai.use(chaiAsPromised)
6 const expect = chai.expect
7
8 const {
9   client
10 } = require('./testHelpers')
11
12 describe('Core Status', () => {
13
14   describe('gasRate', () => {
15     it('simple example', () =>
16       client.status.gasRate()
17         .then(items =>
18         expect(items.gas_rate).not.to.be.empty
19       )
20     )
21   })
22
23   describe('netInfo', () => {
24     it('simple example', () => {
25       return client.status.netInfo()
26         .then((resp) => {
27         expect(resp).not.to.be.empty
28       })
29     })
30   })
31
32 })