fix: failing verify FCM token test
due to incorrect fake admin SDK JSON
This commit is contained in:
@@ -2,21 +2,22 @@ import { describe, expect, it } from "bun:test";
|
||||
|
||||
import { server } from "~/mocks";
|
||||
|
||||
import type { AdminSdkCredentials } from "./getGoogleAuthToken";
|
||||
import { verifyFcmToken } from "./verifyFcmToken";
|
||||
|
||||
server.listen();
|
||||
|
||||
const FAKE_ADMIN_SDK_JSON = {
|
||||
const FAKE_ADMIN_SDK_JSON: AdminSdkCredentials = {
|
||||
type: "service_account",
|
||||
projectID: "test-26g38",
|
||||
privateKeyID: "privateKeyId",
|
||||
projectId: "test-26g38",
|
||||
privateKeyId: "privateKeyId",
|
||||
privateKey: "privateKey",
|
||||
clientEmail: "test@test.com",
|
||||
clientID: "clientId",
|
||||
authURI: "https://accounts.google.com/o/oauth2/auth",
|
||||
tokenURI: "https://oauth2.googleapis.com/token",
|
||||
authProviderX509CERTURL: "https://www.googleapis.com/oauth2/v1/certs",
|
||||
clientX509CERTURL:
|
||||
authProviderX509CertUrl: "https://www.googleapis.com/oauth2/v1/certs",
|
||||
clientX509CertUrl:
|
||||
"https://www.googleapis.com/robot/v1/metadata/x509/test%40test.com",
|
||||
universeDomain: "aniplay.com",
|
||||
};
|
||||
Reference in New Issue
Block a user