Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thehenrytsai committed Oct 4, 2024
1 parent 1b95f6e commit c838763
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/handlers/records-read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export class RecordsReadHandler implements MethodHandler {
const recordsDeleteMessage = matchedMessage as RecordsDeleteMessage;
const initialWrite = await RecordsWrite.fetchInitialRecordsWriteMessage(this.messageStore, tenant, recordsDeleteMessage.descriptor.recordId);
return {
status: { code: 404, detail: 'Not Found' },
recordsDelete: recordsDeleteMessage,
status : { code: 404, detail: 'Not Found' },
recordsDelete : recordsDeleteMessage,
initialWrite
};
}
Expand Down Expand Up @@ -103,8 +103,8 @@ export class RecordsReadHandler implements MethodHandler {
}

const recordsReadReply: RecordsReadReply = {
status: { code: 200, detail: 'OK' },
recordsWrite: matchedRecordsWrite,
status : { code: 200, detail: 'OK' },
recordsWrite : matchedRecordsWrite,
data
};

Expand Down
2 changes: 1 addition & 1 deletion tests/features/owner-signature.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function testOwnerSignature(): void {
expect(readReply.recordsWrite?.descriptor).to.exist;

// Alice augments Bob's message as an external owner
const { data, recordsWrite } = readReply; // remove data from message
const { recordsWrite } = readReply; // remove data from message
const ownerSignedMessage = await RecordsWrite.parse(recordsWrite!);
await ownerSignedMessage.signAsOwner(Jws.createSigner(alice));

Expand Down
3 changes: 2 additions & 1 deletion tests/features/records-tags.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,8 @@ export function testRecordsTags(): void {
const tagsRecord1ReadReply = await dwn.processMessage(alice.did, tagsRecord1Read.message);
expect(tagsRecord1ReadReply.status.code).to.equal(200);
expect(tagsRecord1ReadReply.recordsWrite).to.not.be.undefined;
expect(tagsRecord1ReadReply.recordsWrite!.descriptor.tags).to.deep.equal({ stringTag, numberTag, booleanTag, stringArrayTag, numberArrayTag });
expect(tagsRecord1ReadReply.recordsWrite!.descriptor.tags)
.to.deep.equal({ stringTag, numberTag, booleanTag, stringArrayTag, numberArrayTag });
});

it('should overwrite tags when updating a Record', async () => {
Expand Down

0 comments on commit c838763

Please sign in to comment.