We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6c3c4f commit f496dd4Copy full SHA for f496dd4
1 file changed
test/specs/elements/Button/Button-test.js
@@ -13,7 +13,7 @@ describe('Button', () => {
13
it('renders "Click Here" by default', () => {
14
render(<Button />).assertText('Click Here');
15
});
16
- it('has type of submit', () => {
+ it('inherits type', () => {
17
render(<Button type='submit' />)
18
.findTag('button')
19
.getAttribute('type')
@@ -22,7 +22,7 @@ describe('Button', () => {
22
it('renders its children', () => {
23
render(<Button>Save Now</Button>).assertText('Save Now');
24
25
- it('should run passed in handleClick function', () => {
+ it('spreads callbacks on the button element', () => {
26
const handleClick = sandbox.spy();
27
const button = render(<Button type='submit' onClick={handleClick} />).findTag('button');
28
Simulate.click(button);
0 commit comments