From e34e48c91efcc72afb680eaf9b98472ff6017761 Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Sun, 29 May 2022 18:28:02 -0700 Subject: [PATCH] test: update error codes used in the `NgOptimizedImage` tests (#47082) This commit updates the error codes used in the `NgOptimizedImage` tests. The error codes got u[dated recently in a PR that got merged earlier. PR Close #47082 --- packages/common/test/directives/ng_optimized_image_spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/common/test/directives/ng_optimized_image_spec.ts b/packages/common/test/directives/ng_optimized_image_spec.ts index b23152892c2..b1442aa0903 100644 --- a/packages/common/test/directives/ng_optimized_image_spec.ts +++ b/packages/common/test/directives/ng_optimized_image_spec.ts @@ -435,7 +435,7 @@ describe('Image directive', () => { fixture.detectChanges(); }) .toThrowError( - 'NG02951: The NgOptimizedImage directive has detected that the `loading` ' + + 'NG02952: The NgOptimizedImage directive has detected that the `loading` ' + 'attribute was used on an image that was marked "priority". ' + 'Images marked "priority" are always eagerly loaded and this behavior ' + 'cannot be overwritten by using the "loading" attribute.'); @@ -462,7 +462,7 @@ describe('Image directive', () => { fixture.detectChanges(); }) .toThrowError( - 'NG02951: The NgOptimizedImage directive has detected that the `loading` ' + + 'NG02952: The NgOptimizedImage directive has detected that the `loading` ' + 'attribute has an invalid value: expecting "lazy", "eager", or "auto"' + ' but got: `fast`.'); });