1
0
Fork 0
mirror of synced 2024-10-01 17:47:46 +13:00

fix datasource test

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-29 16:23:58 +02:00
parent d0aca74e4a
commit d86467ecd7

View file

@ -55,7 +55,7 @@ describe("Datasources Store", () => {
expect(get(store).list).toEqual(expect.arrayContaining([SAVE_DATASOURCE])) expect(get(store).list).toEqual(expect.arrayContaining([SAVE_DATASOURCE]))
}) })
it("deletes a datasource, updates the store and returns status message", async () => { 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() await store.fetch()