Deal with empty response from `GET inbox/`
michielbdejong opened this issue · 1 comments
michielbdejong commented
I created a unit test where an empty inbox is mocked by returning
for the GET inbox/
.
Unexpectedly, this test fails if you make that mocked request return an empty body.
Rdflib errors with:
Inbox logic › getInboxMembers › When inbox is empty › Resolves to an empty array
Fetcher: <https://container.com/> Not Found
at Fetcher.failFetch (node_modules/rdflib/lib/fetcher.js:1084:17)
at node_modules/rdflib/lib/fetcher.js:1787:26
A very similar test in src/util/unit.test.ts does not fail, so not sure what I'm doing wrong here.
michielbdejong commented
After some more investigation, opened an issue upstream: jefflau/jest-fetch-mock#189