Skip to content

Commit

Permalink
misc playing with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Nov 14, 2023
1 parent ab01d29 commit f2ea4e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/http-api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ describe('http api', function () {
dataSize: size,
published: true,
});
console.log(recordsWrite.message.descriptor);
recordsWrite.message.descriptor.protocolPath = 'image';
recordsWrite.message.descriptor.protocol = 'image';
recordsWrite.message.contextId = 'what is this field';
const requestId = uuidv4();
const dwnRequest = createJsonRpcRequest(requestId, 'dwn.processMessage', {
message: recordsWrite.toJSON(),
Expand All @@ -532,9 +536,10 @@ describe('http api', function () {
expect(body.id).to.equal(requestId);
expect(body.error).to.not.exist;
const { reply } = body.result;
console.log(reply);
expect(reply.status.code).to.equal(202);
response = await fetch(
`http://localhost:3000/dwn/${alice.did}/records?protocolPath=photo`,
`http://localhost:3000/dwn/${alice.did}/records?protocolPath=image`,
);
console.log(await response.json());
const blob = await response.blob();
Expand Down

0 comments on commit f2ea4e2

Please sign in to comment.