Skip to content

Commit

Permalink
fix: navigation bar 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsjsj1246 committed Sep 28, 2024
1 parent 54cea53 commit 533cbb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NavigationBar/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('NavigationBar 컴포넌트', () => {
it('isFold가 true일 때 접힘 상태로 렌더링되어야 함', () => {
render(<NavigationBar isFold toggleFold={identity} />);
const navigationBar = screen.getByTestId('navigation-bar');
expect(navigationBar).toHaveClass('fixed translate-x-[-8rem]');
expect(navigationBar).toHaveClass('fixed -translate-x-32');
});

it('isFold가 false일 때 펼친 상태로 렌더링되어야 함', () => {
Expand Down
1 change: 1 addition & 0 deletions src/libs/util/test-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ const customRender = (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>
const customRenderHook: typeof renderHook = (render, options) => renderHook(render, { wrapper, ...options });

export * from '@testing-library/react';
export { default as userEvent } from '@testing-library/user-event';
export { customRender as render, customRenderHook as renderHook };

0 comments on commit 533cbb8

Please sign in to comment.