Skip to content

Commit

Permalink
fix svelte tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondk committed Feb 11, 2025
1 parent dab4d22 commit 0048ac3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ test('mount component', async () => {
const instance = new App({ target: host, props: {} });
expect(instance).toBeTruthy();
expect(host.innerHTML).toMatchInlineSnapshot(
'"<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>"'
'"<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>"'
);
});

0 comments on commit 0048ac3

Please sign in to comment.