-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJSON-LD.tests.ps1
More file actions
19 lines (16 loc) · 754 Bytes
/
JSON-LD.tests.ps1
File metadata and controls
19 lines (16 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
describe 'JSON-LD' {
context 'JSON-LD is a standard for embedding information in web pages' {
it 'can get information about a movie' {
$result = Get-JsonLD -Url 'https://letterboxd.com/film/amelie/'
$result.pstypenames | Should -Not -BeNullOrEmpty
$result.pstypenames -match 'schema.org' |
Should -Match '^https?://schema.org/Movie'
}
it 'can get information a schema' {
Get-JsonLD https://schema.org/Movie |
Select-Object -ExpandProperty '@graph' |
Select-Object -ExpandProperty pstypenames -Unique |
Should -Contain 'rdf:Property'
}
}
}