Skip to content

Commit

Permalink
feat: remove categories for post test
Browse files Browse the repository at this point in the history
  • Loading branch information
liruchen32 committed Feb 22, 2024
1 parent 2cf1720 commit 215915e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/news_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ func metaOfPostResponse(p testPost) string {
"og_description": "測試分享描述",
"title": "測試標題",
"subtitle": "測試副標",
"categories": %s,
"published_date": "%s",
"is_external": false,
"tags": %s,
Expand All @@ -356,7 +355,6 @@ func metaOfPostResponse(p testPost) string {
imageResponse(p.Image),
imageResponse(p.Image),
imageResponse(p.Image),
categoriesResponse(p.Categories...),
p.CreatedAt.UTC().Format(time.RFC3339),
tagsResponse(p.Tags...))
}
Expand Down Expand Up @@ -422,7 +420,6 @@ func createPostDocument(p testPost) bson.M {
"tags": p.Tags,
"style": "article:v2:default",
"copyright": "Copyrighted",
"categories": p.Categories,
"category_set": bson.M{
"category": nil,
"subcategory": nil,
Expand Down

0 comments on commit 215915e

Please sign in to comment.