Skip to content

Commit

Permalink
Adjust regular expression to match one or more digits in version
Browse files Browse the repository at this point in the history
  • Loading branch information
jermnelson committed Jan 6, 2021
1 parent 31fb106 commit cc47f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/feature/readNews.test.js
Expand Up @@ -7,7 +7,7 @@ describe('reading the latest Sinopia news items', () => {
it('displays a div containing the latest news, version of Sinopia, link to github site, and a static text list', async () => {
const { container } = renderApp()
await screen.findByText('Latest news')
await screen.findByText(/Sinopia Version \d\.\d\.\d highlights/)
await screen.findByText(/Sinopia Version \d+\.\d+\.\d+ highlights/)
screen.getByText('Sinopia help site', { selector: 'a' })
expect(container.querySelectorAll('li').length).not.toBeLessThan(1)
})
Expand Down

0 comments on commit cc47f45

Please sign in to comment.