Skip to content
Snippets Groups Projects
Commit cfe94aae authored by Mark A. Matney, Jr's avatar Mark A. Matney, Jr
Browse files

Remove test of IIIFThumbnail that doesn't reflect current usage

parent 5f80214e
No related branches found
No related tags found
No related merge requests found
...@@ -72,11 +72,6 @@ describe('IIIFThumbnail', () => { ...@@ -72,11 +72,6 @@ describe('IIIFThumbnail', () => {
expect(wrapper.find('img').props().style).toMatchObject({ height: 60, width: 50 }); expect(wrapper.find('img').props().style).toMatchObject({ height: 60, width: 50 });
}); });
it('relaxes constraints when the image dimensions are unknown', () => {
wrapper = createWrapper({ thumbnail: { url } });
expect(wrapper.find('img').props().style).toMatchObject({ height: 'auto', width: 'auto' });
});
it('constrains what it can when the image dimensions are unknown', () => { it('constrains what it can when the image dimensions are unknown', () => {
wrapper = createWrapper({ maxHeight: 90, thumbnail: { height: 120, url } }); wrapper = createWrapper({ maxHeight: 90, thumbnail: { height: 120, url } });
expect(wrapper.find('img').props().style).toMatchObject({ height: 90, width: 'auto' }); expect(wrapper.find('img').props().style).toMatchObject({ height: 90, width: 'auto' });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment