Skip to content

Commit

Permalink
remove author from constructor in tests, fix typo with incorrect self…
Browse files Browse the repository at this point in the history
…-reference
  • Loading branch information
LiranCohen committed May 13, 2024
1 parent c0eb04f commit 60b4820
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export class Record implements RecordModel {
get protocolPath() { return this.descriptor.protocolPath; }

/** Role under which the author is writing the record */
get protocolRole() { return this.protocolRole; }
get protocolRole() { return this._protocolRole; }

/** Record's recipient */
get recipient() { return this.descriptor.recipient; }
Expand Down
2 changes: 0 additions & 2 deletions packages/api/tests/record.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ describe('Record', () => {
const record = new Record(testHarness.agent, {
...recordsWrite.message,
encodedData : dataBlob,
author : aliceDid.uri,
connectedDid : aliceDid.uri
});

Expand Down Expand Up @@ -2011,7 +2010,6 @@ describe('Record', () => {
const record = new Record(testHarness.agent, {
...recordsWrite.message,
encodedData : dataBlob,
author : aliceDid.uri,
connectedDid : aliceDid.uri,
});

Expand Down

0 comments on commit 60b4820

Please sign in to comment.