mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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:
parent
e854a8cdde
commit
e34e48c91e
1 changed files with 2 additions and 2 deletions
|
|
@ -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`.');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue