Skip to content

Commit 4fd7ce4

Browse files
committed
build: fix formatting failure (#24466)
Fixes a couple of files that weren't formatted and are breaking the lint check. (cherry picked from commit 6d8693d)
1 parent 6b76469 commit 4fd7ce4

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

src/material-experimental/mdc-autocomplete/autocomplete.spec.ts

+12-13
Original file line numberDiff line numberDiff line change
@@ -1396,23 +1396,22 @@ describe('MDC-based MatAutocomplete', () => {
13961396
.toBeFalsy();
13971397
}));
13981398

1399-
it('should not close when a click event occurs on the outside while the panel has focus',
1400-
fakeAsync(() => {
1401-
const trigger = fixture.componentInstance.trigger;
1399+
it('should not close when a click event occurs on the outside while the panel has focus', fakeAsync(() => {
1400+
const trigger = fixture.componentInstance.trigger;
14021401

1403-
input.focus();
1404-
flush();
1405-
fixture.detectChanges();
1402+
input.focus();
1403+
flush();
1404+
fixture.detectChanges();
14061405

1407-
expect(document.activeElement).toBe(input, 'Expected input to be focused.');
1408-
expect(trigger.panelOpen).toBe(true, 'Expected panel to be open.');
1406+
expect(document.activeElement).toBe(input, 'Expected input to be focused.');
1407+
expect(trigger.panelOpen).toBe(true, 'Expected panel to be open.');
14091408

1410-
dispatchMouseEvent(document.body, 'click');
1411-
fixture.detectChanges();
1409+
dispatchMouseEvent(document.body, 'click');
1410+
fixture.detectChanges();
14121411

1413-
expect(document.activeElement).toBe(input, 'Expected input to continue to be focused.');
1414-
expect(trigger.panelOpen).toBe(true, 'Expected panel to stay open.');
1415-
}));
1412+
expect(document.activeElement).toBe(input, 'Expected input to continue to be focused.');
1413+
expect(trigger.panelOpen).toBe(true, 'Expected panel to stay open.');
1414+
}));
14161415

14171416
it('should reset the active option when closing with the escape key', fakeAsync(() => {
14181417
const trigger = fixture.componentInstance.trigger;

src/material/autocomplete/autocomplete.spec.ts

+12-13
Original file line numberDiff line numberDiff line change
@@ -1379,23 +1379,22 @@ describe('MatAutocomplete', () => {
13791379
.toBeFalsy();
13801380
}));
13811381

1382-
it('should not close when a click event occurs on the outside while the panel has focus',
1383-
fakeAsync(() => {
1384-
const trigger = fixture.componentInstance.trigger;
1382+
it('should not close when a click event occurs on the outside while the panel has focus', fakeAsync(() => {
1383+
const trigger = fixture.componentInstance.trigger;
13851384

1386-
input.focus();
1387-
flush();
1388-
fixture.detectChanges();
1385+
input.focus();
1386+
flush();
1387+
fixture.detectChanges();
13891388

1390-
expect(document.activeElement).toBe(input, 'Expected input to be focused.');
1391-
expect(trigger.panelOpen).toBe(true, 'Expected panel to be open.');
1389+
expect(document.activeElement).toBe(input, 'Expected input to be focused.');
1390+
expect(trigger.panelOpen).toBe(true, 'Expected panel to be open.');
13921391

1393-
dispatchMouseEvent(document.body, 'click');
1394-
fixture.detectChanges();
1392+
dispatchMouseEvent(document.body, 'click');
1393+
fixture.detectChanges();
13951394

1396-
expect(document.activeElement).toBe(input, 'Expected input to continue to be focused.');
1397-
expect(trigger.panelOpen).toBe(true, 'Expected panel to stay open.');
1398-
}));
1395+
expect(document.activeElement).toBe(input, 'Expected input to continue to be focused.');
1396+
expect(trigger.panelOpen).toBe(true, 'Expected panel to stay open.');
1397+
}));
13991398

14001399
it('should reset the active option when closing with the escape key', fakeAsync(() => {
14011400
const trigger = fixture.componentInstance.trigger;

0 commit comments

Comments
 (0)