Skip to content

Commit f20f022

Browse files
committed
Merge pull request react-bootstrap#1151 from react-bootstrap/taion-patch-1
Remove wrong componentClass='input' Button tests
2 parents 0ead4e2 + f3eec0b commit f20f022

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

test/ButtonSpec.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ describe('Button', function () {
1212
assert.equal(React.findDOMNode(instance).nodeName, 'BUTTON');
1313
});
1414

15-
it('Should output a component with button classes', function () {
16-
let instance = ReactTestUtils.renderIntoDocument(
17-
<Button componentClass='input'>
18-
Title
19-
</Button>
20-
);
21-
assert.equal(React.findDOMNode(instance).nodeName, 'INPUT');
22-
assert.equal(React.findDOMNode(instance).getAttribute('class'), 'btn btn-default');
23-
});
24-
2515
it('Should have type=button by default', function () {
2616
let instance = ReactTestUtils.renderIntoDocument(
2717
<Button>
@@ -51,17 +41,6 @@ describe('Button', function () {
5141
assert.equal(React.findDOMNode(instance).getAttribute('href'), href);
5242
});
5343

54-
it('Should output an input if called with a href and an input component', function () {
55-
let href = '/url';
56-
let instance = ReactTestUtils.renderIntoDocument(
57-
<Button href={href} componentClass='input'>
58-
Title
59-
</Button>
60-
);
61-
assert.equal(React.findDOMNode(instance).nodeName, 'INPUT');
62-
assert.equal(React.findDOMNode(instance).getAttribute('href'), href);
63-
});
64-
6544
it('Should output an anchor if called with a target', function () {
6645
let target = '_blank';
6746
let instance = ReactTestUtils.renderIntoDocument(

0 commit comments

Comments
 (0)