Skip to content

Commit

Permalink
add label and type tests to SearchService and AutocompleteService
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkkwang authored and cjcolvar committed Oct 3, 2022
1 parent 231fc9a commit 06f33e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/lib/iiif_manifest/v3/manifest_factory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ def sequence_rendering
allow(book_presenter).to receive(:search_service).and_return(search_service)
expect(result['service'][0]['profile']).to eq 'http://iiif.io/api/search/1/search'
expect(result['service'][0]['id']).to eq 'http://test.host/books/book-77/search'
expect(result['service'][0]['label']).to eq 'Search within this manifest'
expect(result['service'][0]['type']).to eq 'SearchService1'
expect(result['service'][0]['service']).to eq nil
end
end
Expand All @@ -332,6 +334,8 @@ def sequence_rendering
allow(book_presenter).to receive(:autocomplete_service).and_return(autocomplete_service)
expect(result['service'][0]['service']['id']).to eq 'http://test.host/books/book-77/autocomplete'
expect(result['service'][0]['service']['profile']).to eq 'http://iiif.io/api/search/1/autocomplete'
expect(result['service'][0]['service']['label']).to eq 'Get suggested words in this manifest'
expect(result['service'][0]['service']['type']).to eq 'AutoCompleteService1'
end
end

Expand Down

0 comments on commit 06f33e5

Please sign in to comment.