Skip to content

Commit a38dab4

Browse files
committed
update tests to reflect the class move in DropdownButton
1 parent 047b723 commit a38dab4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/DropdownButtonSpec.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ describe('DropdownButton', function () {
2626

2727
var button = ReactTestUtils.findRenderedComponentWithType(instance, Button).getDOMNode();
2828
assert.ok(instance.getDOMNode().className.match(/\bbtn-group\b/));
29+
assert.ok(instance.getDOMNode().className.match(/\btest-class\b/));
2930
assert.ok(button.className.match(/\bbtn\b/));
30-
assert.ok(button.className.match(/\btest-class\b/));
3131
assert.equal(button.nodeName, 'BUTTON');
3232
assert.equal(button.type, 'button');
3333
assert.ok(button.className.match(/\bdropdown-toggle\b/));
@@ -171,7 +171,7 @@ describe('DropdownButton', function () {
171171
var button = ReactTestUtils.findRenderedComponentWithType(instance, Button).getDOMNode();
172172
assert.equal(li.nodeName, 'LI');
173173
assert.ok(li.className.match(/\bdropdown\b/));
174-
assert.ok(button.className.match(/\btest-class\b/));
174+
assert.ok(li.className.match(/\btest-class\b/));
175175
assert.equal(button.nodeName, 'A');
176176
assert.ok(button.className.match(/\bdropdown-toggle\b/));
177177
assert.ok(button.lastChild.className.match(/\bcaret\b/));
@@ -203,4 +203,4 @@ describe('DropdownButton', function () {
203203
var carets = button.getElementsByClassName('caret');
204204
assert.equal(carets.length, 0);
205205
});
206-
});
206+
});

0 commit comments

Comments
 (0)