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.
18 lines (15 loc) • 490 B
text/typescript
import { IDictionary } from "../../typescript/i-dictionary.js";
import { dictionaryValues } from "./dictionary-values.js";
import { Test_setDefaultFlags } from "../../test-util/test_set-default-flags.js";
describe("=> dictionaryValues", () =>
{
beforeEach(() =>
{
Test_setDefaultFlags();
});
const values: IDictionary<number> = { a: 1, b: 2 };
it("| returns dictionary values", () =>
{
expect(dictionaryValues(values)).toEqual([1, 2]);
});
});