From 1cd1f0751c0271eaa811d8950f9434479bbcef4f Mon Sep 17 00:00:00 2001 From: Mike North Date: Sun, 17 Mar 2019 14:18:05 -0700 Subject: [PATCH] fix: relax Dict tests to sync with video --- challenges/dict/test/dict.test.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/challenges/dict/test/dict.test.ts b/challenges/dict/test/dict.test.ts index 1ffa818d7..63b092572 100644 --- a/challenges/dict/test/dict.test.ts +++ b/challenges/dict/test/dict.test.ts @@ -29,20 +29,6 @@ describe("Dict type", () => { ghi: ["jkl", "mno"] }; }); - // it("(compile) should have a default typeParam", () => { - // const x: Dict = { - // abc: ["def"], - // ghi: ["jkl", "mno"] - // }; - // }); - // it("(compile) should have a default typeParam of `any`", () => { - // const x: Dict = { - // abc: "def", - // ghi: ["jkl", "mno"], - // pqr: 4, - // stu: () => false - // }; - // }); }); describe("mapDict", () => { @@ -85,18 +71,4 @@ describe("reduceDict", () => { ) ).to.eq(26); }); - // it("should not invoke the reducer function for undefined values", () => { - // let invokeCount = 0; - // expect( - // indexExports.reduceDict( - // { abc: 4, def: undefined }, - // (x, acc) => { - // invokeCount++; - // return `${acc}, ${x}`; - // }, - // "" - // ) - // ).to.eq(", 4"); - // expect(invokeCount).to.eq(1); - // }); });