Making it pass
In this section, we’ll make a very simple change to make the test pass, and then we’ll repeat the cycle again with a second test.
To make this test pass, add the following content to the src/routes/birthdays/Birthday.svelte
file:
<script> export let name; </script> <span><strong>{name}</strong></span>
Rerun your tests now, and you should see the following output from the Vitest test runner (you’ll see the tests from Chapter 1, Setting up for Testing, are still listed here):
✓ src/routes/birthdays/Birthday.test.js (1) ✓ Birthday (1) ✓ displays the name of the person ✓ src/index.test.js (3) ✓ sum test (3) ✓ adds 1 + 2 to equal 3 ✓ renders hello into the document ✓ renders hello,...