Skip to content

Commit 1cd1f07

Browse files
committed
fix: relax Dict<T> tests to sync with video
1 parent 327f9aa commit 1cd1f07

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

challenges/dict/test/dict.test.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@ describe("Dict type", () => {
2929
ghi: ["jkl", "mno"]
3030
};
3131
});
32-
// it("(compile) should have a default typeParam", () => {
33-
// const x: Dict = {
34-
// abc: ["def"],
35-
// ghi: ["jkl", "mno"]
36-
// };
37-
// });
38-
// it("(compile) should have a default typeParam of `any`", () => {
39-
// const x: Dict = {
40-
// abc: "def",
41-
// ghi: ["jkl", "mno"],
42-
// pqr: 4,
43-
// stu: () => false
44-
// };
45-
// });
4632
});
4733

4834
describe("mapDict", () => {
@@ -85,18 +71,4 @@ describe("reduceDict", () => {
8571
)
8672
).to.eq(26);
8773
});
88-
// it("should not invoke the reducer function for undefined values", () => {
89-
// let invokeCount = 0;
90-
// expect(
91-
// indexExports.reduceDict(
92-
// { abc: 4, def: undefined },
93-
// (x, acc) => {
94-
// invokeCount++;
95-
// return `${acc}, ${x}`;
96-
// },
97-
// ""
98-
// )
99-
// ).to.eq(", 4");
100-
// expect(invokeCount).to.eq(1);
101-
// });
10274
});

0 commit comments

Comments
 (0)