UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 463 B
"use strict";import{a as i}from"../../../__chunks__/chunk-JBJD3IUJ.js";import{m as n}from"../../../__chunks__/chunk-HBP5N4FR.js";n();describe("pipe tests",()=>{test("pipe basic test",()=>{let t=i(2).if(!1).then(3).if(!0).then(e=>e+2).if(!1).then(5).then(e=>e+2).valueOf();expect(t).toStrictEqual(6)}),test("pipe undefined test",()=>{let t=i(void 0).if(!0).then(e=>e).then(e=>e).valueOf();expect(t).toStrictEqual(void 0)})}); //# sourceMappingURL=pipe.test.js.map