@@ -442,43 +442,43 @@ describe('<Preferences />', () => {
442442 ) ;
443443 } ) ;
444444 } ) ;
445- describe ( 'start wordwrap at false' , ( ) => {
446- it ( 'wordwrap toggle, starting at false' , ( ) => {
447- // render the component with wordwrap prop set to false
448- subject ( { wordwrap : false } ) ;
445+ describe ( 'start linewrap at false' , ( ) => {
446+ it ( 'linewrap toggle, starting at false' , ( ) => {
447+ // render the component with linewrap prop set to false
448+ subject ( { linewrap : false } ) ;
449449
450- // get ahold of the radio buttons for toggling wordwrap
451- const wordwrapRadioFalse = screen . getByRole ( 'radio' , {
452- name : / w o r d w r a p o f f / i
450+ // get ahold of the radio buttons for toggling linewrap
451+ const linewrapRadioFalse = screen . getByRole ( 'radio' , {
452+ name : / l i n e w r a p o f f / i
453453 } ) ;
454- const wordwrapRadioTrue = screen . getByRole ( 'radio' , {
455- name : / w o r d w r a p o n / i
454+ const linewrapRadioTrue = screen . getByRole ( 'radio' , {
455+ name : / l i n e w r a p o n / i
456456 } ) ;
457457
458458 testToggle (
459- wordwrapRadioFalse ,
460- wordwrapRadioTrue ,
459+ linewrapRadioFalse ,
460+ linewrapRadioTrue ,
461461 props . setLinewrap ,
462462 true
463463 ) ;
464464 } ) ;
465465 } ) ;
466- describe ( 'start wordwrap at true' , ( ) => {
467- it ( 'wordwrap toggle, starting at true' , ( ) => {
468- // render the component with wordwrap prop set to true
469- subject ( { wordwrap : true } ) ;
466+ describe ( 'start linewrap at true' , ( ) => {
467+ it ( 'linewrap toggle, starting at true' , ( ) => {
468+ // render the component with linewrap prop set to true
469+ subject ( { linewrap : true } ) ;
470470
471- // get ahold of the radio buttons for toggling wordwrap
472- const wordwrapRadioFalse = screen . getByRole ( 'radio' , {
473- name : / w o r d w r a p o f f / i
471+ // get ahold of the radio buttons for toggling linewrap
472+ const linewrapRadioFalse = screen . getByRole ( 'radio' , {
473+ name : / l i n e w r a p o f f / i
474474 } ) ;
475- const wordwrapRadioTrue = screen . getByRole ( 'radio' , {
476- name : / w o r d w r a p o n / i
475+ const linewrapRadioTrue = screen . getByRole ( 'radio' , {
476+ name : / l i n e w r a p o n / i
477477 } ) ;
478478
479479 testToggle (
480- wordwrapRadioTrue ,
481- wordwrapRadioFalse ,
480+ linewrapRadioTrue ,
481+ linewrapRadioFalse ,
482482 props . setLinewrap ,
483483 false
484484 ) ;
@@ -511,7 +511,7 @@ describe('<Preferences />', () => {
511511 } ) ;
512512
513513 const generalElement1 = screen . getByRole ( 'radio' , {
514- name : / w o r d w r a p o n / i
514+ name : / l i n e w r a p o n / i
515515 } ) ;
516516 expect ( generalElement1 ) . toBeInTheDocument ( ) ;
517517 } ) ;
0 commit comments