Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit a6013b0

Browse files
committed
fix: testcase update
1 parent dcf8e45 commit a6013b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/hooks/dynamicImport/__tests__/useDynamicImport.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jest.mock('@docusaurus/router', () => ({
1313
}),
1414
}));
1515

16-
afterEach(() => {
17-
jest.clearAllMocks();
18-
});
19-
2016
jest.mock('@site/src/hooks/useAuthContext');
2117

2218
describe('useDynamicImportJSON', () => {
2319
const { result } = renderHook(() => useDynamicImportJSON());
2420

21+
afterEach(() => {
22+
jest.clearAllMocks();
23+
});
24+
2525
it('should populate text data with the correct values', () => {
2626
act(() => {
2727
expect(result.current.text_data).toEqual({
@@ -42,8 +42,8 @@ describe('useDynamicImportJSON', () => {
4242
act(() => {
4343
jest.mock('@docusaurus/router', () => ({
4444
useLocation: () => ({
45-
pathname: '/api-explorer#website_status',
46-
hash: '#website_status',
45+
pathname: '/api-explorer#active_symbols',
46+
hash: '#active_symbol',
4747
}),
4848
useHistory: () => ({
4949
push: jest.fn(),

0 commit comments

Comments
 (0)