We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f32fbf commit 68d7c47Copy full SHA for 68d7c47
src/App.test.js
@@ -9,7 +9,7 @@ test('displays title correctly', () => {
9
test('displays points value', () => {
10
render(<App />);
11
const pointsElement = screen.getByText((content, element) => {
12
- const hasText = (node) => node.textContent.match(/points: \d+/i);
+ const hasText = (node) => node.textContent.match(/points: [\d.\w]+/i);
13
const elementHasText = hasText(element);
14
const childrenDontHaveText = Array.from(element.children).every(
15
(child) => !hasText(child),
0 commit comments