refactor: update microsoft platform slug to office365 for consistency (#23179)
* refactor: update Microsoft platform slug to office365 for consistency * Update server.test.ts
This commit is contained in:
1 parent
02e486d757
commit
4a23832388
2 files changed
+1
-16
No files matched your search
@@ -213,21 +213,6 @@ describe("getAllDelegationCredentialsForUserIncludeServiceAccountKey", () => {
|
||||
buildDelegationCredentialGoogleMeetCredential(),
|
||||
]);
|
||||
});
|
||||
|
||||
it("should return empty array for non-Google platforms(as they are not supported yet)", async () => {
|
||||
vi.mocked(
|
||||
DelegationCredentialRepository.findUniqueByOrgMemberEmailIncludeSensitiveServiceAccountKey
|
||||
).mockResolvedValue(
|
||||
buildMockDelegationCredential({
|
||||
workspacePlatform: {
|
||||
name: "Microsoft",
|
||||
slug: "microsoft",
|
||||
},
|
||||
})
|
||||
);
|
||||
const result = await getAllDelegationCredentialsForUserIncludeServiceAccountKey({ user: mockUser });
|
||||
expect(result).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("buildAllCredentials", () => {
|
||||
|
||||
@@ -80,7 +80,7 @@ export async function toggleDelegationCredentialEnabled(
|
||||
if (slug === "google") {
|
||||
calendarAppName = "Google Calendar";
|
||||
conferencingAppName = "Google Meet";
|
||||
} else if (slug === "microsoft") {
|
||||
} else if (slug === "office365") {
|
||||
calendarAppName = "Microsoft 365";
|
||||
conferencingAppName = "Microsoft Teams";
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user