1
0
mirror of https://github.com/Bytom/bytom-node-sdk.git synced 2020-06-03 17:14:54 +00:00
bytom-node-sdk/test/config.js
2018-11-23 16:36:27 +08:00

32 lines
605 B
JavaScript

/* eslint-env mocha */
const chai = require('chai')
const chaiAsPromised = require('chai-as-promised')
chai.use(chaiAsPromised)
const expect = chai.expect
const {
client
} = require('./testHelpers')
describe('Core Status', () => {
describe('gasRate', () => {
it('simple example', () =>
client.status.gasRate()
.then(items =>
expect(items.gas_rate).not.to.be.empty
)
)
})
describe('netInfo', () => {
it('simple example', () => {
return client.status.netInfo()
.then((resp) => {
expect(resp).not.to.be.empty
})
})
})
})