Skip to content

Commit

Permalink
Add failing test for annotation id
Browse files Browse the repository at this point in the history
Co-authored-by: Mason Ballengee <[email protected]>
  • Loading branch information
cjcolvar and masaball committed May 2, 2022
1 parent 1ad6109 commit 3558acf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/lib/iiif_manifest/v3/manifest_factory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def display_content
expect(result['items'].first['items'].first['id']).not_to be_empty
expect(result['items'].first['items'].first['items'].length).to eq 1
expect(result['items'].first['items'].first['items'].first['type']).to eq 'Annotation'
expect(result['items'].first['items'].first['items'].first['id']).not_to be_empty
expect(result['items'].first['items'].first['items'].first['motivation']).to eq 'painting'
expect(result['items'].first['items'].first['items'].first['target']).to eq result['items'].first['id']
expect(result['items'].first['items'].first['items'].first['body']['type']).to eq 'Image'
Expand Down Expand Up @@ -185,6 +186,7 @@ def display_content
expect(result['items'].first['items'].first['id']).not_to be_empty
expect(result['items'].first['items'].first['items'].length).to eq 1
expect(result['items'].first['items'].first['items'].first['type']).to eq 'Annotation'
expect(result['items'].first['items'].first['items'].first['id']).not_to be_empty
expect(result['items'].first['items'].first['items'].first['motivation']).to eq 'painting'
expect(result['items'].first['items'].first['items'].first['target']).to eq result['items'].first['id']
expect(result['items'].first['items'].first['items'].first['body']['type']).to eq 'Sound'
Expand Down

0 comments on commit 3558acf

Please sign in to comment.