We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c1338 commit b925cf2Copy full SHA for b925cf2
test/unit/utils.google-oauth.test.ts
@@ -10,11 +10,11 @@ import bcrypt from 'bcrypt'
10
11
// Mock Google Auth Library
12
vi.mock('google-auth-library', () => ({
13
- OAuth2Client: vi.fn().mockImplementation(() => ({
14
- generateAuthUrl: vi.fn(),
15
- getToken: vi.fn(),
16
- setCredentials: vi.fn()
17
- }))
+ OAuth2Client: vi.fn(function(this: any) {
+ this.generateAuthUrl = vi.fn()
+ this.getToken = vi.fn()
+ this.setCredentials = vi.fn()
+ })
18
}))
19
20
// Mock bcrypt
0 commit comments