Skip to content

Commit b925cf2

Browse files
committed
test: fix gauth
1 parent d8c1338 commit b925cf2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/unit/utils.google-oauth.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import bcrypt from 'bcrypt'
1010

1111
// Mock Google Auth Library
1212
vi.mock('google-auth-library', () => ({
13-
OAuth2Client: vi.fn().mockImplementation(() => ({
14-
generateAuthUrl: vi.fn(),
15-
getToken: vi.fn(),
16-
setCredentials: vi.fn()
17-
}))
13+
OAuth2Client: vi.fn(function(this: any) {
14+
this.generateAuthUrl = vi.fn()
15+
this.getToken = vi.fn()
16+
this.setCredentials = vi.fn()
17+
})
1818
}))
1919

2020
// Mock bcrypt

0 commit comments

Comments
 (0)