Skip to content

Commit c5acbe8

Browse files
committed
Fix schematic tests for latest TSLint failure output
1 parent 12ba140 commit c5acbe8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cdk/schematics/ng-update/test-cases/misc/method-call-checks.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ describe('v6 method call checks', () => {
99
});
1010

1111
expect(logOutput)
12-
.toMatch(/\[15,.*Found call to "FocusMonitor\.monitor".*renderer.*has been removed/);
12+
.toMatch(/:15.*Found call to "FocusMonitor\.monitor".*renderer.*has been removed/);
1313
expect(logOutput)
14-
.toMatch(/\[16,.*Found call to "FocusMonitor\.monitor".*renderer.*has been removed/);
14+
.toMatch(/:16.*Found call to "FocusMonitor\.monitor".*renderer.*has been removed/);
1515

1616
removeTempDir();
1717
});

src/lib/schematics/ng-update/test-cases/misc/constructor-checks.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ describe('constructor checks', () => {
88
'constructor-checks': require.resolve('./constructor-checks_input.ts')
99
});
1010

11-
expect(logOutput).toMatch(/\[22.*Found "NativeDateAdapter"/,
11+
expect(logOutput).toMatch(/:22.*Found "NativeDateAdapter"/,
1212
'Expected the constructor checks to report if an argument is not assignable.');
13-
expect(logOutput).not.toMatch(/\[26.*Found "NativeDateAdapter".*/,
13+
expect(logOutput).not.toMatch(/:26.*Found "NativeDateAdapter".*/,
1414
'Expected the constructor to not report if an argument is assignable.');
1515

1616
expect(logOutput).not.toMatch(/Found "NonMaterialClass".*: new NonMaterialClass\(\)/);

0 commit comments

Comments
 (0)