Rename helper library to get-error-message
This commit is contained in:
15
examples/element-factory/src/button.test.js
Normal file
15
examples/element-factory/src/button.test.js
Normal 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 () => {});
|
||||
});
|
||||
Reference in New Issue
Block a user