Skip to content

Commit

Permalink
Update passage-card.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
rubynguyen1510 authored Feb 10, 2024
1 parent c420f36 commit d290b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/passage/__tests__/passage-card.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('<PassageCard>', () => {

// eslint-disable-next-line testing-library/no-node-access
const passageElement=document.querySelector('.passage-card')
expect(passageElement).toHaveAttribute('data-passage-tag', tags.join(' '));
expect(passageElement).toHaveAttribute('data-passage-tags', tags.join(' '));
});

it('should include data-passage-tag with an empty string when passage has no tags', () => {
Expand All @@ -49,7 +49,7 @@ describe('<PassageCard>', () => {

// eslint-disable-next-line testing-library/no-node-access
const passageElement=document.querySelector('.passage-card')
expect(passageElement).toHaveAttribute('data-passage-tag', '');
expect(passageElement).toHaveAttribute('data-passage-tags', '');
});

it('displays the passage name', () => {
Expand Down

0 comments on commit d290b36

Please sign in to comment.