This repository was archived by the owner on Aug 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -303,10 +303,9 @@ Object.keys(testContexts).forEach((testKey) => {
303
303
test : modelReducer ( 'test' , initialState ) ,
304
304
} ) ;
305
305
306
- const reactCheckbox = < Control . checkbox model = "test.single" /> ;
307
306
const field = TestUtils . renderIntoDocument (
308
307
< Provider store = { store } >
309
- { reactCheckbox }
308
+ < Control . checkbox model = "test.single" />
310
309
</ Provider >
311
310
) ;
312
311
@@ -368,7 +367,7 @@ Object.keys(testContexts).forEach((testKey) => {
368
367
369
368
const checkbox = TestUtils . findRenderedDOMComponentWithTag ( field , 'input' ) ;
370
369
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 ' , ( ) => {
372
371
assert . equal ( checkbox . checked , true ) ;
373
372
} ) ;
374
373
@@ -422,7 +421,7 @@ Object.keys(testContexts).forEach((testKey) => {
422
421
423
422
const checkbox = TestUtils . findRenderedDOMComponentWithTag ( field , 'input' ) ;
424
423
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 ' , ( ) => {
426
425
assert . equal ( checkbox . checked , false ) ;
427
426
} ) ;
428
427
You can’t perform that action at this time.
0 commit comments