@@ -442,43 +442,43 @@ describe('<Preferences />', () => {
442
442
) ;
443
443
} ) ;
444
444
} ) ;
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 } ) ;
449
449
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
453
453
} ) ;
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
456
456
} ) ;
457
457
458
458
testToggle (
459
- wordwrapRadioFalse ,
460
- wordwrapRadioTrue ,
459
+ linewrapRadioFalse ,
460
+ linewrapRadioTrue ,
461
461
props . setLinewrap ,
462
462
true
463
463
) ;
464
464
} ) ;
465
465
} ) ;
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 } ) ;
470
470
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
474
474
} ) ;
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
477
477
} ) ;
478
478
479
479
testToggle (
480
- wordwrapRadioTrue ,
481
- wordwrapRadioFalse ,
480
+ linewrapRadioTrue ,
481
+ linewrapRadioFalse ,
482
482
props . setLinewrap ,
483
483
false
484
484
) ;
@@ -511,7 +511,7 @@ describe('<Preferences />', () => {
511
511
} ) ;
512
512
513
513
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
515
515
} ) ;
516
516
expect ( generalElement1 ) . toBeInTheDocument ( ) ;
517
517
} ) ;
0 commit comments