Skip to content

Commit 397bd27

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 3a44378 commit 397bd27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)