Skip to content

Commit 14202da

Browse files
author
James Brundage
committed
feat: Get-JsonJD tests ( Fixes #9 )
1 parent 4e8ee46 commit 14202da

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

JSON-LD.tests.ps1

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
describe 'JSON-LD' {
2+
context 'JSON-LD is a standard for embedding information in web pages' {
3+
it 'can get information about a movie' {
4+
$result = Get-JsonLD -Url 'https://www.imdb.com/title/tt0211915/'
5+
$result.pstypenames | Should -Not -BeNullOrEmpty
6+
$result.pstypenames | Should -Contain 'https://schema.org/Movie'
7+
8+
}
9+
it 'can get information a schema' {
10+
$result = Get-JsonLD -Url 'https://schema.org/Movie'
11+
$result.'@graph' | Should -Not -BeNullOrEmpty
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)