Skip to content

Commit

Permalink
fix: relax Dict<T> tests to sync with video
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Mar 17, 2019
1 parent 327f9aa commit 1cd1f07
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions challenges/dict/test/dict.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down Expand Up @@ -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);
// });
});

0 comments on commit 1cd1f07

Please # to comment.