Skip to content

Commit f66a3ce

Browse files
committed
fix react tests
1 parent 0048ac3 commit f66a3ce

File tree

1 file changed

+1
-1
lines changed
  • src/dfx/assets/project_templates/react_tests/src/__frontend_name__/src/tests

1 file changed

+1
-1
lines changed

src/dfx/assets/project_templates/react_tests/src/__frontend_name__/src/tests/App.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('App', () => {
1010
<App />
1111
</StrictMode>,
1212
);
13-
expect(document.body.innerHTML).toMatchInlineSnapshot('"<div><main class="container"><div class="card"><h1></h1><form action="#"><label for="name">Enter your name:</label><input type="text" id="name" required=""><button type="submit">Click Me!</button></form><img src="/logo.svg" alt="DFINITY logo" width="256"></div></main></div>"');
13+
expect(document.body.innerHTML).toMatchInlineSnapshot('"<div><main class="container"><div class="card"><h1 id="greeting"></h1><form action="#"><label for="name">Enter your name:</label><input type="text" id="name" required=""><button type="submit">Click Me!</button></form><img src="/logo.svg" alt="DFINITY logo" width="256"></div></main></div>"');
1414
expect(1).toEqual(1);
1515
});
1616
});

0 commit comments

Comments
 (0)