Fixing builder jest tests.

This commit is contained in:
mike12345567 2021-10-27 13:33:11 +01:00
parent 24eebd9b98
commit c15aafe6a2
2 changed files with 11 additions and 9 deletions

View File

@ -53,7 +53,7 @@ describe("Datasources Store", () => {
})
expect(get(store).list).toEqual(expect.arrayContaining([SAVE_DATASOURCE]))
expect(get(store).list).toEqual(expect.arrayContaining([SAVE_DATASOURCE.datasource]))
})
it("deletes a datasource, updates the store and returns status message", async () => {
api.get.mockReturnValue({ json: () => SOME_DATASOURCE})

View File

@ -13,6 +13,7 @@ export const SOME_DATASOURCE = [
]
export const SAVE_DATASOURCE = {
datasource: {
type: "datasource",
name: "CoolDB",
source: "REST",
@ -22,4 +23,5 @@ export const SAVE_DATASOURCE = {
},
_id: "datasource_04b003a7b4a8428eadd3bb2f7eae0255",
_rev: "1-4e72002f1011e9392e655948469b7908",
},
}