Skip to content

Commit f496dd4

Browse files
committed
update button test
1 parent a6c3c4f commit f496dd4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/specs/elements/Button/Button-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Button', () => {
1313
it('renders "Click Here" by default', () => {
1414
render(<Button />).assertText('Click Here');
1515
});
16-
it('has type of submit', () => {
16+
it('inherits type', () => {
1717
render(<Button type='submit' />)
1818
.findTag('button')
1919
.getAttribute('type')
@@ -22,7 +22,7 @@ describe('Button', () => {
2222
it('renders its children', () => {
2323
render(<Button>Save Now</Button>).assertText('Save Now');
2424
});
25-
it('should run passed in handleClick function', () => {
25+
it('spreads callbacks on the button element', () => {
2626
const handleClick = sandbox.spy();
2727
const button = render(<Button type='submit' onClick={handleClick} />).findTag('button');
2828
Simulate.click(button);

0 commit comments

Comments
 (0)