Skip to content

Commit 44f6e07

Browse files
author
Jimmy Jia
committed
Assert that correct classes are applied
For react-bootstrap#228
1 parent 9fdf98e commit 44f6e07

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/PanelSpec.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,14 @@ describe('Panel', function () {
149149
);
150150

151151
var children = instance.getDOMNode().children;
152+
152153
assert.equal(children[0].nodeName, 'DIV');
154+
assert.ok(children[0].className.match(/\bpanel-body\b/));
155+
153156
assert.equal(children[1].nodeName, 'TABLE');
157+
assert.notOk(children[1].className.match(/\bpanel-body\b/));
158+
154159
assert.equal(children[2].nodeName, 'DIV');
160+
assert.ok(children[2].className.match(/\bpanel-body\b/));
155161
})
156162
});

0 commit comments

Comments
 (0)