Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const baseDto = (
area_hectares: 107,
buffer_zone_hectares: 143,
short_description: "dummy",
short_description_jp: "ダミー",
unesco_site_url: "https://example.com",
state_party: null,
state_party_codes: ["JPN"],
Expand Down Expand Up @@ -75,7 +76,7 @@ describe("toWorldHeritageDetailVm", () => {
expect(vm.countryNameJp).toBe(dto.country_name_jp);
expect(vm.region).toBe(dto.region);

// detail 差分
// detail
expect(vm.primaryStatePartyCode).toBe("JPN");
expect(vm.thumbnailUrl).toBe(dto.thumbnail_url);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe("toWorldHeritageVm", () => {
latitude: null,
longitude: null,
shortDescription: "desc",
shortDescriptionJp: "ダミー",
unescoSiteUrl: "https://whc.unesco.org/en/list/663",
primaryStatePartyCode: null,
criteriaText: "ix, x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function toWorldHeritageDetailVm(dto: ApiWorldHeritageDetailDto): WorldHe
area_hectares: dto.area_hectares,
buffer_zone_hectares: dto.buffer_zone_hectares,
short_description: dto.short_description,
short_description_jp: dto.short_description_jp,
unesco_site_url: dto.unesco_site_url,
state_party: dto.state_party,
state_party_codes: dto.state_party_codes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export function toWorldHeritageVm(data: ApiWorldHeritageDto): WorldHeritageVm {
latitude: data.latitude,
longitude: data.longitude,
shortDescription: data.short_description,
shortDescriptionJp: data.short_description_jp,
unescoSiteUrl: data.unesco_site_url,
statePartyCodes: statePartyLabelsJp,
statePartiesMeta: normalizeStatePartiesMeta(data.state_parties_meta),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ describe("useWorldHeritageDetail", () => {
area_hectares: null,
buffer_zone_hectares: null,
short_description: "A group of historic sites in Kyoto.",

unesco_site_url: "https://example.com/kyoto",
state_party: "Japan",
state_party_codes: ["JPN"],
Expand Down
2 changes: 1 addition & 1 deletion client/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@features/*": ["app/features/*"]
},
"module": "ESNext",
"types": ["vite/client", "jest"],
"types": ["vite/client", "jest", "@testing-library/jest-dom"],
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
Expand Down
Loading