1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

Add small unit test

This commit is contained in:
Adria Navarro 2023-05-23 10:22:26 +02:00
parent 023373bb25
commit e838a90d3e

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