Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 8bef6c4

Browse files
committed
Changed descriptions of tests to be accurate
1 parent 2d96550 commit 8bef6c4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/control-component-spec.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,9 @@ Object.keys(testContexts).forEach((testKey) => {
303303
test: modelReducer('test', initialState),
304304
});
305305

306-
const reactCheckbox = <Control.checkbox model="test.single" />;
307306
const field = TestUtils.renderIntoDocument(
308307
<Provider store={store}>
309-
{reactCheckbox}
308+
<Control.checkbox model="test.single" />
310309
</Provider>
311310
);
312311

@@ -368,7 +367,7 @@ Object.keys(testContexts).forEach((testKey) => {
368367

369368
const checkbox = TestUtils.findRenderedDOMComponentWithTag(field, 'input');
370369

371-
it('should initially set the checkbox to checked if the model is truthy', () => {
370+
it('should initially set the checkbox to checked when defaultChecked is true', () => {
372371
assert.equal(checkbox.checked, true);
373372
});
374373

@@ -422,7 +421,7 @@ Object.keys(testContexts).forEach((testKey) => {
422421

423422
const checkbox = TestUtils.findRenderedDOMComponentWithTag(field, 'input');
424423

425-
it('should initially set the checkbox to checked if the model is truthy', () => {
424+
it('should initially set the checkbox to unchecked when defaultChecked is false', () => {
426425
assert.equal(checkbox.checked, false);
427426
});
428427

0 commit comments

Comments
 (0)