UNPKG

@ledgerhq/live-common

Version:
15 lines 656 B
import expect from "expect"; import { pressBoth, pressUntilTextFound, waitFor, containsSubstringInEvent } from "../speculos"; import { DeviceLabels } from "../enum/DeviceLabels"; export async function sendKaspa() { await pressUntilTextFound(DeviceLabels.APPROVE); await pressBoth(); } export async function delegateKaspa(delegatingAccount) { await waitFor(DeviceLabels.REVIEW_OPERATION); const events = await pressUntilTextFound(DeviceLabels.APPROVE); const isAmountCorrect = containsSubstringInEvent(delegatingAccount.amount, events); expect(isAmountCorrect).toBeTruthy(); await pressBoth(); } //# sourceMappingURL=kaspa.js.map