@tatumio/tatum
Version:
Tatum JS SDK
28 lines • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const service_1 = require("../../../service");
const e2e_util_1 = require("../../e2e.util");
const getIotaRpc = async (testnet) => await service_1.TatumSDK.init(e2e_util_1.e2eUtil.initConfig(testnet ? service_1.Network.IOTA_TESTNET : service_1.Network.IOTA));
describe.each([true, false])('Iota', (testnet) => {
describe(`${testnet ? service_1.Network.IOTA_TESTNET : service_1.Network.IOTA}`, () => {
it('getNodeInfo', async () => {
const tatum = await getIotaRpc(testnet);
const info = await tatum.rpc.getNodeInfo();
await tatum.destroy();
expect(info).toBeDefined();
});
it('getTips', async () => {
const tatum = await getIotaRpc(testnet);
const tips = await tatum.rpc.getTips();
await tatum.destroy();
expect(tips).toBeDefined();
});
it('getReceipts', async () => {
const tatum = await getIotaRpc(testnet);
const receipts = await tatum.rpc.getAllReceipts();
await tatum.destroy();
expect(receipts).toBeDefined();
});
});
});
//# sourceMappingURL=tatum.rpc.iota.spec.js.map