12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { Dictionary } from "./dictionary";
|
|||
|
|
import { StringData } from "./string";
|
||
|
|
|
||
|
|
describe("dictionary", () => {
|
||
|
|
it("pairs contains all values", () => {
|
||
|
|
const d = new Dictionary();
|
||
|
|
d.add("ABC", new StringData("val"));
|
||
|
|
|
||
|
|
expect(d.pairs()).toEqual([{ key: "ABC", value: new StringData("val") }]);
|
||
|
|
});
|
||
|
|
});
|