Add small unit test
This commit is contained in:
parent
023373bb25
commit
e838a90d3e
|
@ -144,4 +144,15 @@ describe("Google Sheets Integration", () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe("testConnection", () => {
|
||||||
|
it("can test successful connections", async () => {
|
||||||
|
await config.doInContext(structures.uuid(), async () => {
|
||||||
|
const res = await integration.testConnection()
|
||||||
|
|
||||||
|
expect(mockGoogleIntegration.loadInfo).toBeCalledTimes(1)
|
||||||
|
expect(res).toEqual({ connected: true })
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue