-
I have mockClient.intercept({
method: 'GET',
path: '/v2/exampleOrgName/exampleImageName/blobs/abc123',
}).reply(200, Buffer.from('testGetResponse'), {
headers: {'content-type': 'application/octet-stream'},
}); The error I'm getting is
I'm not sure how to troubleshoot this. The desired return call is |
Beta Was this translation helpful? Give feedback.
Answered by
drazisil
Sep 29, 2022
Replies: 1 comment
-
I was close. The correct response is Full code:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
drazisil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was close. The correct response is
new Response(Buffer.from(JSON.stringify(mockManifest)))
Full code: