JSON-LD.tests.ps1

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'            
        }         
    }
}