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
This commit is contained in:
Andrew Kushnir 2022-05-29 18:28:02 -07:00 committed by Pawel Kozlowski
parent e854a8cdde
commit e34e48c91e

View file

@ -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`.');
});