File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function BooleanField(props) {
3636 enumOptions  =  optionsList ( { 
3737 oneOf : schema . oneOf . map ( option  =>  ( { 
3838 ...option , 
39-  title : option . title  ||  ( option . const  ===  true  ? "yes "  : "no " ) , 
39+  title : option . title  ||  ( option . const  ===  true  ? "Yes "  : "No " ) , 
4040 } ) ) , 
4141 } ) ; 
4242 }  else  { 
@@ -45,8 +45,8 @@ function BooleanField(props) {
4545 enumNames :
4646 schema . enumNames  || 
4747 ( schema . enum  &&  schema . enum [ 0 ]  ===  false 
48-  ? [ "no " ,  "yes " ] 
49-  : [ "yes " ,  "no " ] ) , 
48+  ? [ "No " ,  "Yes " ] 
49+  : [ "Yes " ,  "No " ] ) , 
5050 } ) ; 
5151 } 
5252
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ describe("BooleanField", () => {
255255 node . querySelectorAll ( ".field-radio-group label" ) , 
256256 label  =>  label . textContent 
257257 ) ; 
258-  expect ( labels ) . eql ( [ "yes " ,  "no " ] ) ; 
258+  expect ( labels ) . eql ( [ "Yes " ,  "No " ] ) ; 
259259 } ) ; 
260260
261261 it ( "should support enum option ordering for radio widgets" ,  ( )  =>  { 
@@ -272,7 +272,7 @@ describe("BooleanField", () => {
272272 node . querySelectorAll ( ".field-radio-group label" ) , 
273273 label  =>  label . textContent 
274274 ) ; 
275-  expect ( labels ) . eql ( [ "no " ,  "yes " ] ) ; 
275+  expect ( labels ) . eql ( [ "No " ,  "Yes " ] ) ; 
276276 } ) ; 
277277
278278 it ( "should support enumNames for radio widgets" ,  ( )  =>  { 
Original file line number Diff line number Diff line change @@ -1566,7 +1566,7 @@ describe("uiSchema", () => {
15661566 node  =>  node . textContent 
15671567 ) ; 
15681568
1569-  expect ( labels ) . eql ( [ "yes " ,  "no " ] ) ; 
1569+  expect ( labels ) . eql ( [ "Yes " ,  "No " ] ) ; 
15701570 } ) ; 
15711571
15721572 it ( "should support formData" ,  ( )  =>  { 
@@ -1634,8 +1634,8 @@ describe("uiSchema", () => {
16341634 it ( "should render boolean option labels" ,  ( )  =>  { 
16351635 const  {  node }  =  createFormComponent ( {  schema,  uiSchema } ) ; 
16361636
1637-  expect ( node . querySelectorAll ( "option" ) [ 1 ] . textContent ) . eql ( "yes " ) ; 
1638-  expect ( node . querySelectorAll ( "option" ) [ 2 ] . textContent ) . eql ( "no " ) ; 
1637+  expect ( node . querySelectorAll ( "option" ) [ 1 ] . textContent ) . eql ( "Yes " ) ; 
1638+  expect ( node . querySelectorAll ( "option" ) [ 2 ] . textContent ) . eql ( "No " ) ; 
16391639 } ) ; 
16401640
16411641 it ( "should update state when true is selected" ,  ( )  =>  { 
                         You can’t perform that action at this time. 
           
                  
0 commit comments