Skip to content

Commit

Permalink
wip: google test
Browse files Browse the repository at this point in the history
  • Loading branch information
openint-bot committed Dec 22, 2024
1 parent 08471d3 commit 941d1ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sdks/sdk-google/src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -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)
})
})

0 comments on commit 941d1ec

Please sign in to comment.