UNPKG

ts-mls

Version:

[![CI](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml/badge.svg)](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/ts-mls.svg)](https://badge.fury.io/js/ts-mls) [![Coverage Status](https://co

12 lines 496 B
import { encodeLifetime, decodeLifetime } from "../../src/lifetime"; import { createRoundtripTest } from "./roundtrip"; describe("Lifetime roundtrip", () => { const roundtrip = createRoundtripTest(encodeLifetime, decodeLifetime); test("roundtrips minimal", () => { roundtrip({ notBefore: 0n, notAfter: 0n }); }); test("roundtrips nontrivial", () => { roundtrip({ notBefore: 123456789n, notAfter: 987654321n }); }); }); //# sourceMappingURL=lifetime.test.js.map