Sitelet https://github.com/MarcosSantosDev/github-clone/commit/41be7e2a4f7ab8a627b883c9cc328924360765e2
Skip to content

Commit 41be7e2

Browse files
refactor: refactor the "useTab" hook test and move it to the same folder hierarchy as the hook
1 parent 4e8327e commit 41be7e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { renderHook, act } from '@testing-library/react';
44

55
import { BrowserRouter } from 'react-router-dom';
66

7-
import { useTab } from '../../src/common/hooks';
7+
import { useTab } from './';
88

99
describe('Hook useTab', () => {
10-
it('Hook useTab', () => {
10+
it('should select a tab of value "tab01" and persist in hook state "useTab"', () => {
1111
const wrapper = ({ children }: React.PropsWithChildren<unknown>) => (
1212
<BrowserRouter>{children}</BrowserRouter>
1313
);

0 commit comments

Comments
 (0)