Skip to content

Commit 83ce27c

Browse files
crisbetommalerba
authored andcommitted
chore: minor cleanup in icon tests and virtual scrolling (#11481)
* Removes a file that wasn't being used for anything under `cdk-experimental/scrolling`. * Enables `strictMetadataEmit` for the scrolling package. * Fixes a test for the icons which was leaking out a warning message.
1 parent be577b1 commit 83ce27c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/cdk-experimental/scrolling/tsconfig-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"angularCompilerOptions": {
88
"annotateForClosureCompiler": true,
9-
"strictMetadataEmit": false, // Workaround for Angular #22210
9+
"strictMetadataEmit": true,
1010
"flatModuleOutFile": "index.js",
1111
"flatModuleId": "@angular/cdk-experimental/scrolling",
1212
"skipTemplateCodegen": true,

src/cdk-experimental/scrolling/typings.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/lib/icon/icon.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ describe('MatIcon', () => {
428428
}));
429429

430430
it('should throw an error when using untrusted HTML', () => {
431-
// Stub out console.error so we don't pollute our logs with Angular's warnings.
431+
// Stub out console.warn so we don't pollute our logs with Angular's warnings.
432432
// Jasmine will tear the spy down at the end of the test.
433-
spyOn(console, 'error');
433+
spyOn(console, 'warn');
434434

435435
expect(() => {
436436
iconRegistry.addSvgIconLiteral('circle', '<svg><circle></svg>');

0 commit comments

Comments
 (0)