UNPKG

@sofaws/dapp-core

Version:

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

3 lines (2 loc) 646 B
"use strict";import{b as s}from"../../../__chunks__/chunk-XBLU7KZJ.js";import{m}from"../../../__chunks__/chunk-HBP5N4FR.js";m();describe("timeRemaining tests - short time format",()=>{let e=[[1076,"17 min"],[3976,"1 hr"],[5286,"1 hr"]];for(let t=0;t<e.length;t++){let[i,n]=e[t];test(`parse ${i} -> ${n}`,()=>{let r=s(i);expect(r).toStrictEqual(n)})}});describe("timeRemaining tests - long time format",()=>{let e=[[1076,"17 min 56 sec"],[3976,"1 hr 6 min"],[5286,"1 hr 28 min"]];for(let t=0;t<e.length;t++){let[i,n]=e[t];test(`parse ${i} -> ${n}`,()=>{let r=s(i,!1);expect(r).toStrictEqual(n)})}}); //# sourceMappingURL=timeRemaining.test.js.map