diff --git a/sdks/sdk-google/src/index.spec.ts b/sdks/sdk-google/src/index.spec.ts new file mode 100644 index 0000000..29bbc7e --- /dev/null +++ b/sdks/sdk-google/src/index.spec.ts @@ -0,0 +1,11 @@ +import {initGoogleSDK} from './index.js' + +const accessToken = process.env['GOOGLE_ACCESS_TOKEN']! +const maybeTest = accessToken ? test : test.skip + +maybeTest('get user info', async () => { + const google = initGoogleSDK({auth: {bearer: accessToken}}) + void google.drive_v2.GET('/about').then((r) => { + console.log(r.data) + }) +})