mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
I’ve noticed that there was a loop inside a loop. Since we’re already iterating through `images` using `forEach`, it was running a `for` loop through `images` again. This was probably a mistake made when the functionality was initially added. The test actually verified that `logs.length` is `1`, but in the real environment, it logs twice (which is quite obvious due to the code). I’ve also added the missing file to the Bazel target. PR Close #58021 |
||
|---|---|---|
| .. | ||
| e2e | ||
| BUILD.bazel | ||
| index.html | ||
| index.ts | ||
| playground.ts | ||
| README.md | ||
- NgOptimizedImage directive testing
This folder contains a simple application that can be used as a playground for the NgOptimizedImage directive testing. You can run the following command to start the dev server:
yarn ibazel run packages/core/test/bundling/image-directive:devserver
There is also a set of e2e tests (powered by Protractor), which can be invoked by running:
yarn bazel test packages/core/test/bundling/image-directive:protractor_tests