Rename helper library to get-error-message

This commit is contained in:
Steve Kinney
2024-10-01 16:58:41 -05:00
parent 417bcb39c9
commit 75e9bb7ca7
13 changed files with 34 additions and 20 deletions

View File

@@ -0,0 +1,15 @@
import { createButton } from './button.js';
describe('createButton', () => {
it('should create a button element', () => {
const button = createButton();
expect(button.tagName).toBe('BUTTON');
});
it('should have the text "Click Me"', () => {
const button = createButton();
expect(button.textContent).toBe('Click Me');
});
it.todo('should change the text to "Clicked!" when clicked', async () => {});
});