Added the email property to the organization structured data in the Infrastructure package target.
This commit is contained in:
@@ -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""#
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user