From 9336ae5826dfe6ff9563299279eccd5fede3bd69 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 24 Nov 2021 15:10:52 +0000 Subject: [PATCH] Updating test case to mock response value. --- packages/builder/src/stores/backend/tests/tables.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/stores/backend/tests/tables.spec.js b/packages/builder/src/stores/backend/tests/tables.spec.js index faed217d43..06f8d3097b 100644 --- a/packages/builder/src/stores/backend/tests/tables.spec.js +++ b/packages/builder/src/stores/backend/tests/tables.spec.js @@ -42,7 +42,7 @@ describe("Tables Store", () => { }) it("saving a table also selects it", async () => { - api.post.mockReturnValue({ json: () => SAVE_TABLES_RESPONSE}) + api.post.mockReturnValue({ status: 200, json: () => SAVE_TABLES_RESPONSE}) await store.save(A_TABLE) @@ -50,7 +50,7 @@ describe("Tables Store", () => { }) it("saving the table returns a response", async () => { - api.post.mockReturnValue({ json: () => SAVE_TABLES_RESPONSE}) + api.post.mockReturnValue({ status: 200, json: () => SAVE_TABLES_RESPONSE}) const response = await store.save(A_TABLE)