Add some more example tests

This commit is contained in:
Steve Kinney
2024-10-01 19:52:06 -05:00
parent 5710f74461
commit 93775a8f02
5 changed files with 51 additions and 6 deletions

View File

@@ -11,5 +11,9 @@ describe('createButton', () => {
expect(button.textContent).toBe('Click Me');
});
it.todo('should change the text to "Clicked!" when clicked', async () => {});
it('should change the text to "Clicked!" when clicked', async () => {
const button = createButton();
button.click();
expect(button.textContent).toBe('Clicked!');
});
});