Skip to content

Commit

Permalink
test: add type to link extend test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasmerlin committed Jul 11, 2023
1 parent 8837c44 commit beed814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cypress/e2e/seo.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ describe("Extended link tags", () => {
it("sets favicon", () => {
cy.visit("localhost:3000/extendedLinkTags");
cy.get('head link[rel="icon"]').should("have.attr", "href", "/favicon.ico");
cy.get('head link[rel="icon"]').should("have.attr", "rel", "icon");
cy.get('head link[rel="icon"]').should("have.attr", "type", "image/svg+xml");
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/pages/extendedLinkTags.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SEO from "../SEO.astro";
title="Francis York Morgan"
description="Agent"
canonical="Zach"
extend={{ link: [{ rel: "icon", href: "/favicon.ico" }] }}
extend={{ link: [{ rel: "icon", href: "/favicon.ico", type:"image/svg+xml" }] }}
/>
</head>
<body>Test</body>
Expand Down

0 comments on commit beed814

Please sign in to comment.