Skip to content

Commit

Permalink
fix: Revert meta-test back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliman committed Apr 1, 2022
1 parent ee8f6c2 commit 276ff22
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions integration/meta-test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { AppFixture, Fixture } from "./helpers/create-fixture";
import { createAppFixture, createFixture, js } from "./helpers/create-fixture";
import type { Fixture, AppFixture } from "./helpers/create-fixture";

describe("meta array syntax", () => {
describe("meta", () => {
let fixture: Fixture;
let app: AppFixture;

Expand All @@ -17,14 +17,17 @@ describe("meta array syntax", () => {
title: "Meta Page",
});
export const meta = ({ data }) => [
{ charset: "utf-8" },
{ description: data.description },
{ "og:image": "https://picsum.photos/200/200" },
{ "og:type": data.contentType }, // undefined
{ httpEquiv: "refresh", content: "3;url=https://www.mozilla.org" },
{ title: data.title },
];
export const meta = ({ data }) => ({
charset: "utf-8",
description: data.description,
"og:image": "https://picsum.photos/200/200",
"og:type": data.contentType, // undefined
refresh: {
httpEquiv: "refresh",
content: "3;url=https://www.mozilla.org",
},
title: data.title,
});
export default function Root() {
return (
Expand Down

0 comments on commit 276ff22

Please sign in to comment.