1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

Merge pull request #9885 from Budibase/fix/gsheets-test

Fix/gsheets test
This commit is contained in:
Martin McKeaveney 2023-03-06 11:00:28 +00:00 committed by GitHub
commit ae30f7c985
2 changed files with 11 additions and 0 deletions

View file

@ -35,6 +35,10 @@ describe("Google Sheets Integration", () => {
let integration: any,
config = new TestConfiguration()
beforeAll(() => {
config.setGoogleAuth("test")
})
beforeEach(async () => {
integration = new GoogleSheetsIntegration.integration({
spreadsheetId: "randomId",

View file

@ -181,6 +181,13 @@ class TestConfiguration {
coreEnv._set("SELF_HOSTED", value)
}
setGoogleAuth = (value: string) => {
env._set("GOOGLE_CLIENT_ID", value)
env._set("GOOGLE_CLIENT_SECRET", value)
coreEnv._set("GOOGLE_CLIENT_ID", value)
coreEnv._set("GOOGLE_CLIENT_SECRET", value)
}
modeCloud = () => {
this.setSelfHosted(false)
}