UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

12 lines (10 loc) 318 B
import { setValuesToArray } from "./set-values-to-array.js"; describe("=> setValuesToArray", () => { const values = new Set([1, 2, 3] as const); it("| returns the map's values", () => { const result: (1 | 2 | 3)[] = setValuesToArray(values); expect(result).toEqual([1, 2, 3]); }); });