test: finished processExpireRequestResponse

pull/2971/head
William Grant 2 years ago
parent 16aad0c748
commit b9f1378133

@ -239,5 +239,14 @@ describe('ExpireRequest', () => {
'the result hashes array should contain our messageHash'
).to.equal(props.messageHashes[0]);
});
it('returns an error if the swarm is empty', async () => {
try {
await processExpireRequestResponse(props.pubkey, props.targetNode, {}, props.messageHashes);
} catch (err) {
expect(err.message).to.equal(
`[processExpireRequestResponse] Swarm is missing! ${props.messageHashes}`
);
}
});
});
});

Loading…
Cancel
Save