return gsheets config in test regardless
This commit is contained in:
parent
851fb6140d
commit
e8c73cdee0
|
@ -179,7 +179,7 @@ export async function getGoogleDatasourceConfig(): Promise<
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDefaultGoogleConfig(): GoogleInnerConfig | undefined {
|
export function getDefaultGoogleConfig(): GoogleInnerConfig | undefined {
|
||||||
if (environment.GOOGLE_CLIENT_ID && environment.GOOGLE_CLIENT_SECRET) {
|
if (env.isTest() || (environment.GOOGLE_CLIENT_ID && environment.GOOGLE_CLIENT_SECRET)) {
|
||||||
return {
|
return {
|
||||||
clientID: environment.GOOGLE_CLIENT_ID!,
|
clientID: environment.GOOGLE_CLIENT_ID!,
|
||||||
clientSecret: environment.GOOGLE_CLIENT_SECRET!,
|
clientSecret: environment.GOOGLE_CLIENT_SECRET!,
|
||||||
|
|
|
@ -30,6 +30,7 @@ import { structures } from "@budibase/backend-core/tests"
|
||||||
import TestConfiguration from "../../tests/utilities/TestConfiguration"
|
import TestConfiguration from "../../tests/utilities/TestConfiguration"
|
||||||
import GoogleSheetsIntegration from "../googlesheets"
|
import GoogleSheetsIntegration from "../googlesheets"
|
||||||
import { FieldType, Table, TableSchema } from "../../../../types/src/documents"
|
import { FieldType, Table, TableSchema } from "../../../../types/src/documents"
|
||||||
|
import environment from "../../environment"
|
||||||
|
|
||||||
describe("Google Sheets Integration", () => {
|
describe("Google Sheets Integration", () => {
|
||||||
let integration: any,
|
let integration: any,
|
||||||
|
|
Loading…
Reference in New Issue