gitiumiota
Version:
IOTA Client Reference Implementation
18 lines (14 loc) • 494 B
text/typescript
import * as nock from 'nock'
import { GetTipsCommand, GetTipsResponse, IRICommand } from '../../../../types'
import headers from './headers'
export const getTipsCommand: GetTipsCommand = {
command: IRICommand.GET_TIPS,
}
export const getTipsResponse: GetTipsResponse = {
hashes: ['T'.repeat(81), 'U'.repeat(81)],
duration: 10,
}
export const getBalancesNock = nock('http://localhost:14265', headers)
.persist()
.post('/', getTipsCommand)
.reply(200, getTipsResponse)