fix(integration): Adding integration test script to package.json

This commit is contained in:
Chris Troutner
2022-01-24 13:21:29 -08:00
parent e5f6f24570
commit 7e7e91460a
3 changed files with 38 additions and 2 deletions
@@ -0,0 +1,33 @@
/*
Integration tests for the BCH Use Cases library
*/
// Local libraries
const BCHUseCases = require('../../../../src/use-cases/bch')
const Adapters = require('../../../../src/adapters')
describe('#BCH', () => {
let uut
before(async () => {
const adapters = new Adapters()
await adapters.start()
uut = new BCHUseCases({ adapters })
})
describe('#getTransactions', () => {
it('should get transactions for an address', async () => {
const rpcData = {
payload: {
params: {
addresses: ['bitcoincash:thing']
}
}
}
const result = await uut.getTransactions(rpcData)
console.log('result: ', result)
})
})
})