Add small unit test

This commit is contained in:
Adria Navarro 2023-05-23 10:22:26 +02:00
parent 023373bb25
commit e838a90d3e
1 changed files with 11 additions and 0 deletions

View File

@ -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 })
})
})
})
}) })