Browse Source

fix datasource test

gh-pages
Keviin Åberg Kultalahti 6 years ago
parent
commit
b90e37ba64
  1. 2
      packages/builder/src/stores/backend/tests/datasources.spec.js

2
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()

Loading…
Cancel
Save