Merge pull request #9885 from Budibase/fix/gsheets-test
Fix/gsheets test
This commit is contained in:
commit
ae30f7c985
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue