Skip to content

Commit 4f2c351

Browse files
Apply suggestion from @gemini-code-assist[bot]
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Asper Beauty Shop <252395498+asperpharma@users.noreply.github.com>
1 parent af1eac5 commit 4f2c351

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/__tests__/CelestialFeaturedCollection.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ describe("CelestialFeaturedCollection — Digital Tray", () => {
226226

227227
const productLinks = screen.getAllByRole("link");
228228
expect(productLinks).toHaveLength(3);
229-
for (const link of productLinks) {
230-
expect(link).toHaveAttribute("href", expect.stringContaining("/product/"));
231-
}
229+
expect(productLinks[0]).toHaveAttribute("href", "/product/test-product-1");
230+
expect(productLinks[1]).toHaveAttribute("href", "/product/test-product-2");
231+
expect(productLinks[2]).toHaveAttribute("href", "/product/test-product-3");
232232
});
233233
});
234234

0 commit comments

Comments
 (0)