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

15 lines 600 B
import { encodeCommit, decodeCommit } from "../../src/commit"; import { createRoundtripTest } from "./roundtrip"; describe("Commit roundtrip", () => { const roundtrip = createRoundtripTest(encodeCommit, decodeCommit); test("roundtrips minimal", () => { roundtrip({ proposals: [], path: undefined }); }); test("roundtrips nontrivial", () => { roundtrip({ proposals: [{ proposalOrRefType: "proposal", proposal: { proposalType: "remove", remove: { removed: 1 } } }], path: undefined, }); }); }); //# sourceMappingURL=commit.test.js.map