Skip to content

Commit

Permalink
followed Harsh's comments for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
mumbler6 committed Jun 12, 2024
1 parent 7ed8a9d commit f5676cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ describe('ChapterInfo Component', () => {
dispatch: jest.fn()
};

it('should render ChapterContent components with correct keys', () => {
it('should render ChapterInfo components with correct keys', () => {
// Invariant Violation: Could not find "store"
render(<ChapterInfo {...baseProps} />);

const contents = getAllByTestId('content');
const contents = getAllByTestId('ChapterInfo-test-tag');

Check failure on line 24 in src/screens/EPub/views/EditEPubChapter/ChapterEditor/ChapterInfo.test.js

View workflow job for this annotation

GitHub Actions / Build

'getAllByTestId' is not defined
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
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react';
import SubChapterItem from './SubChapterItem';
import { v4 as uuidv4 } from 'uuid';
import SubChapterItem from './SubChapterItem';

const test_uuid = '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d';

Expand All @@ -22,7 +22,7 @@ describe('SubChapterItem Component', () => {
// Invariant Violation: Could not find "store"
render(<SubChapterItem {...baseProps} />);

const contents = getAllByTestId('content');
const contents = getAllByTestId('SubChapterItem-test-tag');

Check failure on line 25 in src/screens/EPub/views/EditEPubChapter/ChapterEditor/SubChapterItem.test.js

View workflow job for this annotation

GitHub Actions / Build

'getAllByTestId' is not defined
contents.forEach((content) => {
expect(content).toHaveAttribute('key', `sch-content-chapter-id-1-${test_uuid}}`);
});
Expand Down

0 comments on commit f5676cd

Please sign in to comment.