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', () => {
describe('fetchInfoResponse', () => {
it('fetches a IIIF info response', () => {
fetch.mockResponseOnce(JSON.stringify({ id: 'infoId' }));
fetch.mockResponseOnce(JSON.stringify({ id: 'http://server/prefix/infoId' }));
const action = {
imageResource: {},
infoId: 'infoId',
infoId: 'http://server/prefix/infoId',
};
return expectSaga(fetchInfoResponse, action)
.put({
infoId: 'infoId',
infoJson: { id: 'infoId' },
infoId: 'http://server/prefix/infoId',
infoJson: { id: 'http://server/prefix/infoId' },
ok: true,
tokenServiceId: undefined,
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