Skip to content

Commit

Permalink
chore(de list spec): use regex for dynamic "years ago" time
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Nov 20, 2023
1 parent f20be76 commit e3d06d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/dataElements/List.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('Data Elements List', () => {
const { id } = dataElementsMock.result[0]
const firstRow = getByTestId(`section-list-row-${id}`)
expect(firstRow).toHaveTextContent(
'Accute Flaccid Paralysis (Deaths < 5 yrs)AggregateNumber6 years agoPublic can edit'
/Accute Flaccid Paralysis \(Deaths < 5 yrs\)AggregateNumber\d+ years agoPublic can edit/
)
})
it('should display all the columns', async () => {
Expand Down

0 comments on commit e3d06d6

Please sign in to comment.