Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1151 from react-bootstrap/taion-pa…
Browse files Browse the repository at this point in the history
…tch-1

Remove wrong componentClass='input' Button tests
  • Loading branch information
taion committed Aug 14, 2015
2 parents 0ead4e2 + f3eec0b commit f20f022
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/ButtonSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ describe('Button', function () {
assert.equal(React.findDOMNode(instance).nodeName, 'BUTTON');
});

it('Should output a component with button classes', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Button componentClass='input'>
Title
</Button>
);
assert.equal(React.findDOMNode(instance).nodeName, 'INPUT');
assert.equal(React.findDOMNode(instance).getAttribute('class'), 'btn btn-default');
});

it('Should have type=button by default', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Button>
Expand Down Expand Up @@ -51,17 +41,6 @@ describe('Button', function () {
assert.equal(React.findDOMNode(instance).getAttribute('href'), href);
});

it('Should output an input if called with a href and an input component', function () {
let href = '/url';
let instance = ReactTestUtils.renderIntoDocument(
<Button href={href} componentClass='input'>
Title
</Button>
);
assert.equal(React.findDOMNode(instance).nodeName, 'INPUT');
assert.equal(React.findDOMNode(instance).getAttribute('href'), href);
});

it('Should output an anchor if called with a target', function () {
let target = '_blank';
let instance = ReactTestUtils.renderIntoDocument(
Expand Down

0 comments on commit f20f022

Please sign in to comment.