Skip to content
Snippets Groups Projects
Commit 9c0fce27 authored by Justin Coyne's avatar Justin Coyne Committed by Chris Beer
Browse files

Use a valid IIIF info id in test

parent 6b86b827
No related branches found
No related tags found
No related merge requests found
...@@ -98,16 +98,16 @@ describe('IIIF sagas', () => { ...@@ -98,16 +98,16 @@ describe('IIIF sagas', () => {
describe('fetchInfoResponse', () => { describe('fetchInfoResponse', () => {
it('fetches a IIIF info response', () => { it('fetches a IIIF info response', () => {
fetch.mockResponseOnce(JSON.stringify({ id: 'infoId' })); fetch.mockResponseOnce(JSON.stringify({ id: 'http://server/prefix/infoId' }));
const action = { const action = {
imageResource: {}, imageResource: {},
infoId: 'infoId', infoId: 'http://server/prefix/infoId',
}; };
return expectSaga(fetchInfoResponse, action) return expectSaga(fetchInfoResponse, action)
.put({ .put({
infoId: 'infoId', infoId: 'http://server/prefix/infoId',
infoJson: { id: 'infoId' }, infoJson: { id: 'http://server/prefix/infoId' },
ok: true, ok: true,
tokenServiceId: undefined, tokenServiceId: undefined,
type: 'mirador/RECEIVE_INFO_RESPONSE', type: 'mirador/RECEIVE_INFO_RESPONSE',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment