Skip to content

Commit

Permalink
fix(frontend): ✅ Fix blog component test enum tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Grøtan Gregusson committed May 1, 2024
1 parent 3391fb8 commit e19cdd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
19 changes: 0 additions & 19 deletions frontend/tests/componentTests/RelatedProjectAndSatellites.spec.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions frontend/tests/componentTests/fullblogcard.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { test, expect } from "@playwright/experimental-ct-react";
import FullBlogCard from "@/components/fullBlogCard";
import { BlogPost } from "@/app/blog/page";
import { Enum_Article_Tag } from "@/__generated__/graphql";

test("FullBlogCard renders correctly", async ({ mount }) => {
const mockArticle: BlogPost = {
Expand All @@ -20,7 +19,7 @@ test("FullBlogCard renders correctly", async ({ mount }) => {
],
coverImage: "mock-cover-image.jpg",
datePublished: "2024-04-13",
tag: Enum_Article_Tag.Projects,
tag: "Projects",
slug: "mock-article-slug",
};
// Mount the FullBlogCard component with mock data
Expand Down

0 comments on commit e19cdd0

Please sign in to comment.