From d86467ecd721f2f553755e43f80cc1140950742c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Mon, 29 Mar 2021 16:23:58 +0200 Subject: [PATCH] fix datasource test --- packages/builder/src/stores/backend/tests/datasources.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/stores/backend/tests/datasources.spec.js b/packages/builder/src/stores/backend/tests/datasources.spec.js index 4c29206c17..0d1d15777d 100644 --- a/packages/builder/src/stores/backend/tests/datasources.spec.js +++ b/packages/builder/src/stores/backend/tests/datasources.spec.js @@ -55,7 +55,7 @@ describe("Datasources Store", () => { expect(get(store).list).toEqual(expect.arrayContaining([SAVE_DATASOURCE])) }) it("deletes a datasource, updates the store and returns status message", async () => { - api.get.mockReturnValue({ json: () => [SOME_DATASOURCE]}) + api.get.mockReturnValue({ json: () => SOME_DATASOURCE}) await store.fetch()