Added the email property to the organization structured data in the Infrastructure package target.

This commit is contained in:
2026-08-24 17:48:31 +02:00
parent fec52b7942
commit c64c8b726d
3 changed files with 12 additions and 3 deletions
@@ -31,17 +31,18 @@ struct StructuredDataTests {
}
@Test
func `carries the organization's alternate name, description, and area in that order`() {
func `carries the organization's alternate name, description, area, and address in that order`() {
let data = StructuredData(
name: "A Site",
url: "https://site.example/",
alternateName: "The Site",
description: "What the site is.",
areaServed: "A City"
areaServed: "A City",
email: "hello@site.example"
)
#expect(data.payload.contains(
#""name":"A Site","url":"https://site.example/","alternateName":"The Site","description":"What the site is.","areaServed":"A City""#
#""name":"A Site","url":"https://site.example/","alternateName":"The Site","description":"What the site is.","areaServed":"A City","email":"hello@site.example""#
))
}