diff --git a/src/components/modules/Blog/Blog.tsx b/src/components/modules/Blog/Blog.tsx index 5c44c422..187809fb 100644 --- a/src/components/modules/Blog/Blog.tsx +++ b/src/components/modules/Blog/Blog.tsx @@ -22,7 +22,7 @@ export const Blog: React.FC = ({ className, feed }) => { diff --git a/src/domain/blog/model.fixture.ts b/src/domain/blog/model.fixture.ts index 3d4c4cc8..66e65d19 100644 --- a/src/domain/blog/model.fixture.ts +++ b/src/domain/blog/model.fixture.ts @@ -3,23 +3,11 @@ import type { Entry, Feed } from "./model"; export const getEntryFixture = (entry?: Partial): Entry => { return { title: "Entry title", - link: [ - { - href: "https://example.com/", - }, - ], + link: { + href: "https://example.com/", + }, id: "Entry id", published: "2022-09-10T00:00:00+09:00", - updated: "2022-09-10T00:00:00+09:00", - summary: "Entry summary", - content: "Entry content", - category: { - term: "Category term", - label: "Category label", - }, - author: { - name: "Author name", - }, ...entry, }; }; @@ -32,10 +20,6 @@ export const getFeedFixture = (feed?: Partial): Feed => { href: "https://example.com/", }, updated: "2022-09-10T00:00:0+09:00", - author: { - name: "Author name", - }, - id: "Blog id", entry: [getEntryFixture()], ...feed, }; diff --git a/src/domain/blog/model.ts b/src/domain/blog/model.ts index 9c23a25c..852eab0d 100644 --- a/src/domain/blog/model.ts +++ b/src/domain/blog/model.ts @@ -1,32 +1,14 @@ export interface Entry { title: string; - link: { - href: string; - }[]; + link: { href: string }; id: string; published: string; - updated: string; - summary: string; - content: string; - category: { - term: string; - label: string; - }; - author: { - name: string; - }; } export interface Feed { title: string; subTitle: string; - link: { - href: string; - }; + link: { href: string }; updated: string; - author: { - name: string; - }; - id: string; entry: Entry[]; }