Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 55e6855

Browse files
changed wordwrap tests to say linewrap for better readability
1 parent fa49fa4 commit 55e6855

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

‎client/modules/IDE/components/Preferences/Preferences.unit.test.jsx‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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: /wordwrapoff/i
450+
// get ahold of the radio buttons for toggling linewrap
451+
const linewrapRadioFalse = screen.getByRole('radio', {
452+
name: /linewrapoff/i
453453
});
454-
const wordwrapRadioTrue = screen.getByRole('radio', {
455-
name: /wordwrapon/i
454+
const linewrapRadioTrue = screen.getByRole('radio', {
455+
name: /linewrapon/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: /wordwrapoff/i
471+
// get ahold of the radio buttons for toggling linewrap
472+
const linewrapRadioFalse = screen.getByRole('radio', {
473+
name: /linewrapoff/i
474474
});
475-
const wordwrapRadioTrue = screen.getByRole('radio', {
476-
name: /wordwrapon/i
475+
const linewrapRadioTrue = screen.getByRole('radio', {
476+
name: /linewrapon/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: /wordwrapon/i
514+
name: /linewrapon/i
515515
});
516516
expect(generalElement1).toBeInTheDocument();
517517
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /