12 lines
430 B
TypeScript
12 lines
430 B
TypeScript
export const GoogleSignin = {
|
|
configure: jest.fn(),
|
|
hasPlayServices: jest.fn(async () => true),
|
|
signIn: jest.fn(async () => ({ data: { idToken: 'google-id-token' } })),
|
|
signOut: jest.fn(async () => undefined),
|
|
}
|
|
export const statusCodes = {
|
|
SIGN_IN_CANCELLED: 'SIGN_IN_CANCELLED',
|
|
IN_PROGRESS: 'IN_PROGRESS',
|
|
PLAY_SERVICES_NOT_AVAILABLE: 'PLAY_SERVICES_NOT_AVAILABLE',
|
|
}
|
|
export default { GoogleSignin, statusCodes }
|