Skip to content

Commit

Permalink
object: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hbbio committed Mar 27, 2024
1 parent 82ce454 commit b876525
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/object.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ test("mapObject", async () => {

const obj = cellify(proxy, { a: 1, b: "foo", c: "bar" });
expect(sheet.stats).toEqual({ count: 4, size: 4 });
const m = mapObject(proxy, obj, (_k: string, _v: unknown): number =>
typeof _v === "string" ? _v.length : (_v as number)
const m = mapObject(
proxy,
obj,
(_k: string, _cell: unknown, _v: unknown): number =>
typeof _v === "string" ? _v.length : (_v as number)
);

// initial value
Expand Down

0 comments on commit b876525

Please sign in to comment.