@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
3 lines (2 loc) • 967 B
JavaScript
;import{a as r}from"../../../../../__chunks__/chunk-BNOXD7GM.js";import{a as t}from"../../../../../__chunks__/chunk-DEY75ILF.js";import{i as p}from"../../../../../__chunks__/chunk-7QE2X3X4.js";import{a as s,b as a,m as n}from"../../../../../__chunks__/chunk-HBP5N4FR.js";n();p();describe("getOperationsMessages",()=>{it("receive empty array if no operations messages exists on the transaction",()=>{let e=t(r);expect(e).toEqual([])}),it("receive an array with all operations messages",()=>{let e={name:"send",type:"egld",action:"transfer",esdtType:"FungibleESDT",receiver:"erd1qqqqqqqqqqqqqpgq4gdcg0k83u7lpv4s4532w3au9y9h0vm70eqq6m8qk2",sender:"erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex",value:"1",decimals:4,identifier:"EGLD"},i=a(s({},r),{operations:[a(s({},e),{message:"message 0"}),a(s({},e),{message:"message 1"})]}),o=t(i);expect(o).toEqual(["message 0","message 1"])})});
//# sourceMappingURL=getOperationsMessages.test.js.map