Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mumbler6 committed Jun 12, 2024
1 parent fa245af commit 963b50b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ describe('ChapterContent Component', () => {
});

it('should render Tags components with correct keys', () => {
const { getAllByTestId } = render(<ChapterContent {...props} />);
render(<ChapterContent {...props} />);

const tags = getAllByTestId('ChapterContent-test-tag');
const tags = screen.getAllByTestId('ChapterContent-test-tag');
tags.forEach((tag) => {
expect(tag).toHaveAttribute('key', `tag-${props.key}-${test_uuid}`);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('ChapterInfo Component', () => {
// Invariant Violation: Could not find "store"
render(<ChapterInfo {...baseProps} />);

const contents = getAllByTestId('ChapterInfo-test-tag');
const contents = screen.getAllByTestId('ChapterInfo-test-tag');
contents.forEach((content) => {
expect(content).toHaveAttribute('key', `ch-content-chapter-id-1-${test_uuid}`);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('SubChapterItem Component', () => {
// Invariant Violation: Could not find "store"
render(<SubChapterItem {...baseProps} />);

const contents = getAllByTestId('SubChapterItem-test-tag');
const contents = screen.getAllByTestId('SubChapterItem-test-tag');
contents.forEach((content) => {
expect(content).toHaveAttribute('key', `sch-content-chapter-id-1-${test_uuid}}`);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('INoteChapter Component', () => {
it('should render INoteChapter components with correct keys', () => {
render(<INoteChapter {...baseProps} />);

const contents = getAllByTestId('content');
const contents = screen.getAllByTestId('content');
contents.forEach((content) => {
expect(content).toHaveAttribute('key', `ch-content-chapter-id-1-${test_uuid}}`);
});
Expand Down

0 comments on commit 963b50b

Please sign in to comment.