Skip to content

Commit 2432fde

Browse files
committed
Update UTs
1 parent 87873ad commit 2432fde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-core/test/ms-teams/useMsTeamsAuth.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
44
import type UseMsTeamsAuth from "../../src/modules/ms-teams/hooks/useMsTeamsAuth";
55
import { mockMsTeamsContext, mockTranslations } from "../test-utils/mocks";
66

7+
const TEST_BRANCH_SLUG = "lorem-ipsum-branch";
8+
79
// -----------------------------------------------------------------------------
810
// Stubs & Mocks
911
// -----------------------------------------------------------------------------
@@ -29,6 +31,7 @@ vi.mock("../../src/modules/core", () => ({
2931
apiKey: "test_api_key",
3032
userToken: "test_user_token",
3133
host: "https://example.com",
34+
branch: TEST_BRANCH_SLUG,
3235
}),
3336
}));
3437

@@ -75,6 +78,7 @@ describe("useMsTeamsAuth", () => {
7578
channel_id: "test_channel_id",
7679
public_key: "test_api_key",
7780
user_token: "test_user_token",
81+
branch_slug: TEST_BRANCH_SLUG,
7882
});
7983
});
8084

0 commit comments

Comments
 (0)