Skip to content

Commit

Permalink
chore(server): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Mar 28, 2024
1 parent e3df713 commit d0a040b
Showing 1 changed file with 33 additions and 32 deletions.
65 changes: 33 additions & 32 deletions server/datacatalog/datacatalogv2/item_usecase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ import (

func TestUsecaseItem_DataCatalogs(t *testing.T) {
assert.Equal(t, []DataCatalogItem{{
ID: "id",
Type: "ユースケース",
TypeEn: "usecase",
URL: "url",
Year: 2023,
RootType: true,
Category: "aaa",
Family: "generic",
Edition: "2022",
CityAdmin: "city",
WardAdmin: "ward",
ID: "id",
Type: "ユースケース",
TypeEn: "usecase",
URL: "url",
Year: 2023,
RootType: true,
Category: "aaa",
City: "city",
Ward: "ward",
Family: "generic",
Edition: "2022",
}}, UsecaseItem{
ID: "id",
DataURL: "url2",
Expand All @@ -35,29 +35,29 @@ func TestUsecaseItem_DataCatalogs(t *testing.T) {
}.DataCatalogs())

assert.Equal(t, []DataCatalogItem{{
ID: "id",
Type: "あああ",
TypeEn: "あああ",
RootType: true,
Category: "ユースケース",
Family: "generic",
Edition: "2022",
CityAdmin: "city",
ID: "id",
Type: "あああ",
TypeEn: "あああ",
RootType: true,
Category: "ユースケース",
City: "city",
Family: "generic",
Edition: "2022",
}}, UsecaseItem{
ID: "id",
Type: "あああ",
CityName: "city",
}.DataCatalogs())

assert.Equal(t, []DataCatalogItem{{
ID: "id",
Type: "あああ",
TypeEn: "aaa",
RootType: true,
Category: "cat",
Family: "generic",
Edition: "2022",
CityAdmin: "city",
ID: "id",
Type: "あああ",
TypeEn: "aaa",
RootType: true,
Category: "cat",
City: "city",
Family: "generic",
Edition: "2022",
}}, UsecaseItem{
ID: "id",
Type: "あああ",
Expand All @@ -80,10 +80,11 @@ func TestUsecaseItem_DataCatalogs(t *testing.T) {
WardAdmin: "北区",
WardCodeAdmin: "27127",
}}, UsecaseItem{
ID: "id",
Name: "name",
Prefecture: "大阪府",
CityName: "大阪市/北区",
DataFormat: "フォルダ",
ID: "id",
Name: "name",
Prefecture: "大阪府",
CityName: "大阪市/北区",
DataFormat: "フォルダ",
hideCityAndWard: true,
}.DataCatalogs())
}

0 comments on commit d0a040b

Please sign in to comment.