Skip to content

Commit 2853575

Browse files
swseverancejelbourn
authored andcommitted
chore: fix duplicate "should" in unit test names (#14528)
1 parent 48b9da3 commit 2853575

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

src/cdk-experimental/dialog/dialog.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ describe('Dialog', () => {
335335
expect(spy).toHaveBeenCalled();
336336
});
337337

338-
it('should should override the width of the overlay pane', () => {
338+
it('should override the width of the overlay pane', () => {
339339
dialog.openFromComponent(PizzaMsg, {
340340
width: '500px'
341341
});
@@ -347,7 +347,7 @@ describe('Dialog', () => {
347347
expect(overlayPane.style.width).toBe('500px');
348348
});
349349

350-
it('should should override the height of the overlay pane', () => {
350+
it('should override the height of the overlay pane', () => {
351351
dialog.openFromComponent(PizzaMsg, {
352352
height: '100px'
353353
});
@@ -359,7 +359,7 @@ describe('Dialog', () => {
359359
expect(overlayPane.style.height).toBe('100px');
360360
});
361361

362-
it('should should override the min-width of the overlay pane', () => {
362+
it('should override the min-width of the overlay pane', () => {
363363
dialog.openFromComponent(PizzaMsg, {
364364
minWidth: '500px'
365365
});
@@ -371,7 +371,7 @@ describe('Dialog', () => {
371371
expect(overlayPane.style.minWidth).toBe('500px');
372372
});
373373

374-
it('should should override the max-width of the overlay pane', fakeAsync(() => {
374+
it('should override the max-width of the overlay pane', fakeAsync(() => {
375375
let dialogRef = dialog.openFromComponent(PizzaMsg);
376376

377377
viewContainerFixture.detectChanges();
@@ -399,7 +399,7 @@ describe('Dialog', () => {
399399
expect(overlayPane.style.maxWidth).toBe('100px');
400400
}));
401401

402-
it('should should override the min-height of the overlay pane', () => {
402+
it('should override the min-height of the overlay pane', () => {
403403
dialog.openFromComponent(PizzaMsg, {
404404
minHeight: '300px'
405405
});
@@ -411,7 +411,7 @@ describe('Dialog', () => {
411411
expect(overlayPane.style.minHeight).toBe('300px');
412412
});
413413

414-
it('should should override the max-height of the overlay pane', () => {
414+
it('should override the max-height of the overlay pane', () => {
415415
dialog.openFromComponent(PizzaMsg, {
416416
maxHeight: '100px'
417417
});
@@ -423,7 +423,7 @@ describe('Dialog', () => {
423423
expect(overlayPane.style.maxHeight).toBe('100px');
424424
});
425425

426-
it('should should override the top offset of the overlay pane', () => {
426+
it('should override the top offset of the overlay pane', () => {
427427
dialog.openFromComponent(PizzaMsg, {
428428
position: {
429429
top: '100px'
@@ -437,7 +437,7 @@ describe('Dialog', () => {
437437
expect(overlayPane.style.marginTop).toBe('100px');
438438
});
439439

440-
it('should should override the bottom offset of the overlay pane', () => {
440+
it('should override the bottom offset of the overlay pane', () => {
441441
dialog.openFromComponent(PizzaMsg, {
442442
position: {
443443
bottom: '200px'
@@ -451,7 +451,7 @@ describe('Dialog', () => {
451451
expect(overlayPane.style.marginBottom).toBe('200px');
452452
});
453453

454-
it('should should override the left offset of the overlay pane', () => {
454+
it('should override the left offset of the overlay pane', () => {
455455
dialog.openFromComponent(PizzaMsg, {
456456
position: {
457457
left: '250px'
@@ -465,7 +465,7 @@ describe('Dialog', () => {
465465
expect(overlayPane.style.marginLeft).toBe('250px');
466466
});
467467

468-
it('should should override the right offset of the overlay pane', () => {
468+
it('should override the right offset of the overlay pane', () => {
469469
dialog.openFromComponent(PizzaMsg, {
470470
position: {
471471
right: '125px'

src/lib/button/button.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('MatButton', () => {
4848
expect(button.ripple).toBeTruthy();
4949
});
5050

51-
it('should should not clear previous defined classes', () => {
51+
it('should not clear previous defined classes', () => {
5252
let fixture = TestBed.createComponent(TestApp);
5353
let testComponent = fixture.debugElement.componentInstance;
5454
let buttonDebugElement = fixture.debugElement.query(By.css('button'));

src/lib/checkbox/checkbox.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ describe('MatCheckbox', () => {
444444
expect(checkboxNativeElement.classList.contains('mat-accent')).toBe(true);
445445
});
446446

447-
it('should should not clear previous defined classes', () => {
447+
it('should not clear previous defined classes', () => {
448448
checkboxNativeElement.classList.add('custom-class');
449449

450450
testComponent.checkboxColor = 'primary';

src/lib/core/gestures/gesture-config.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('GestureConfig', () => {
4444
expect(firstCallArgs[1].cssProps.touchAction).toBe('auto');
4545
});
4646

47-
it('should should not error when HammerJS is not loaded', () => {
47+
it('should not error when HammerJS is not loaded', () => {
4848
// Remove the Hammer global from the environment, storing it to restore at the end of the test.
4949
const hammerGlobal = (window as any).Hammer;
5050
(window as any).Hammer = undefined;

src/lib/dialog/dialog.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ describe('MatDialog', () => {
363363
expect(spy).toHaveBeenCalled();
364364
});
365365

366-
it('should should override the width of the overlay pane', () => {
366+
it('should override the width of the overlay pane', () => {
367367
dialog.open(PizzaMsg, {
368368
width: '500px'
369369
});
@@ -375,7 +375,7 @@ describe('MatDialog', () => {
375375
expect(overlayPane.style.width).toBe('500px');
376376
});
377377

378-
it('should should override the height of the overlay pane', () => {
378+
it('should override the height of the overlay pane', () => {
379379
dialog.open(PizzaMsg, {
380380
height: '100px'
381381
});
@@ -387,7 +387,7 @@ describe('MatDialog', () => {
387387
expect(overlayPane.style.height).toBe('100px');
388388
});
389389

390-
it('should should override the min-width of the overlay pane', () => {
390+
it('should override the min-width of the overlay pane', () => {
391391
dialog.open(PizzaMsg, {
392392
minWidth: '500px'
393393
});
@@ -399,7 +399,7 @@ describe('MatDialog', () => {
399399
expect(overlayPane.style.minWidth).toBe('500px');
400400
});
401401

402-
it('should should override the max-width of the overlay pane', fakeAsync(() => {
402+
it('should override the max-width of the overlay pane', fakeAsync(() => {
403403
let dialogRef = dialog.open(PizzaMsg);
404404

405405
viewContainerFixture.detectChanges();
@@ -426,7 +426,7 @@ describe('MatDialog', () => {
426426
expect(overlayPane.style.maxWidth).toBe('100px');
427427
}));
428428

429-
it('should should override the min-height of the overlay pane', () => {
429+
it('should override the min-height of the overlay pane', () => {
430430
dialog.open(PizzaMsg, {
431431
minHeight: '300px'
432432
});
@@ -438,7 +438,7 @@ describe('MatDialog', () => {
438438
expect(overlayPane.style.minHeight).toBe('300px');
439439
});
440440

441-
it('should should override the max-height of the overlay pane', () => {
441+
it('should override the max-height of the overlay pane', () => {
442442
dialog.open(PizzaMsg, {
443443
maxHeight: '100px'
444444
});
@@ -450,7 +450,7 @@ describe('MatDialog', () => {
450450
expect(overlayPane.style.maxHeight).toBe('100px');
451451
});
452452

453-
it('should should override the top offset of the overlay pane', () => {
453+
it('should override the top offset of the overlay pane', () => {
454454
dialog.open(PizzaMsg, {
455455
position: {
456456
top: '100px'
@@ -464,7 +464,7 @@ describe('MatDialog', () => {
464464
expect(overlayPane.style.marginTop).toBe('100px');
465465
});
466466

467-
it('should should override the bottom offset of the overlay pane', () => {
467+
it('should override the bottom offset of the overlay pane', () => {
468468
dialog.open(PizzaMsg, {
469469
position: {
470470
bottom: '200px'
@@ -478,7 +478,7 @@ describe('MatDialog', () => {
478478
expect(overlayPane.style.marginBottom).toBe('200px');
479479
});
480480

481-
it('should should override the left offset of the overlay pane', () => {
481+
it('should override the left offset of the overlay pane', () => {
482482
dialog.open(PizzaMsg, {
483483
position: {
484484
left: '250px'
@@ -492,7 +492,7 @@ describe('MatDialog', () => {
492492
expect(overlayPane.style.marginLeft).toBe('250px');
493493
});
494494

495-
it('should should override the right offset of the overlay pane', () => {
495+
it('should override the right offset of the overlay pane', () => {
496496
dialog.open(PizzaMsg, {
497497
position: {
498498
right: '125px'

src/lib/select/select.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ describe('MatSelect', () => {
395395
expect(formControl.value).toBeFalsy('Expected value not to have changed.');
396396
}));
397397

398-
it('should should close when pressing ALT + DOWN_ARROW', fakeAsync(() => {
398+
it('should close when pressing ALT + DOWN_ARROW', fakeAsync(() => {
399399
const {select: selectInstance} = fixture.componentInstance;
400400

401401
selectInstance.open();
@@ -412,7 +412,7 @@ describe('MatSelect', () => {
412412
expect(event.defaultPrevented).toBe(true, 'Expected default action to be prevented.');
413413
}));
414414

415-
it('should should close when pressing ALT + UP_ARROW', fakeAsync(() => {
415+
it('should close when pressing ALT + UP_ARROW', fakeAsync(() => {
416416
const {select: selectInstance} = fixture.componentInstance;
417417

418418
selectInstance.open();

src/lib/slide-toggle/slide-toggle.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ describe('MatSlideToggle without forms', () => {
597597
expect(slideThumbContainer.classList).not.toContain('mat-dragging');
598598
}));
599599

600-
it('should should emit a change event after drag', fakeAsync(() => {
600+
it('should emit a change event after drag', fakeAsync(() => {
601601
expect(slideToggle.checked).toBe(false);
602602

603603
gestureConfig.emitEventForElement('slidestart', slideThumbContainer);

0 commit comments

Comments
 (0)