From 0801c213a574895cde598fd0cbf64a8e4362d4b8 Mon Sep 17 00:00:00 2001 From: "Larry W." Date: Mon, 13 Nov 2023 05:46:43 -0500 Subject: [PATCH] chore: update tests --- tests/LoadableMap.test.ts | 2 +- tests/MegaMap.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/LoadableMap.test.ts b/tests/LoadableMap.test.ts index f81a840..6f67187 100644 --- a/tests/LoadableMap.test.ts +++ b/tests/LoadableMap.test.ts @@ -25,7 +25,7 @@ describe("LoadableMap", () => { const item = await loadableMap.get("key1") expect(mockLoadOneFunction).toHaveBeenCalledWith("key1") expect(item).toEqual({_id: "key1", data: "Data for key1"}) - expect(loadableMap["_map"].value.has("key1")).toBeTruthy() + expect(loadableMap["_map"].has("key1")).toBeTruthy() }) test("should return undefined for nonexistent key", async () => { diff --git a/tests/MegaMap.test.ts b/tests/MegaMap.test.ts index cd15b28..4d3af85 100644 --- a/tests/MegaMap.test.ts +++ b/tests/MegaMap.test.ts @@ -34,8 +34,8 @@ describe("MegaMap", () => { const item1 = await megaMap.load("key1") expect(item1).toEqual({_id: "key1", data: "Data for key1"}) - expect(secondaryMegaMap["_map"].value.has("key1")).toBeTruthy() - expect(secondaryMegaMap["_map"].value.get("key1")).toEqual(item1) + expect(secondaryMegaMap["_map"].has("key1")).toBeTruthy() + expect(secondaryMegaMap["_map"].get("key1")).toEqual(item1) }) // test('should throw error when getAll returns no items', async () => {