forked from decentralized-identity/dwn-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
handle<Xyz>
methods in Dwn
class with overloaded `process… (
decentralized-identity#566) * Replace `handle<Xyz>` methods in `Dwn` class with overloaded `processMessage` This commit fixes decentralized-identity#563. It removes the four methods in `Dwn` (1) `handleRecordsWrite` (2) `handleRecordsQuery` (3) `handleRecordsRead` (4) `handleMessagesGet` with the overloaded `processMessage` function introduced in commit decentralized-identity#554. This commit also replaces all invocations of the four deleted functions in all tests with the single `processMessage`. Note that because the new `processMessage` can't and doesn't use the `expectedMethod` or `expectedInterface` arguments in `validateMessageIntegrity`, any tests that are testing for incorrect method edge cases will receive errors from json schema invalidation (i.e., `schema for x not found`) rather than message integrity errors (i.e., `Expected method x, received y) * Update code coverage badge * Remove tests for removed functions --------- Co-authored-by: Diane Huxley <[email protected]>
- Loading branch information
Showing
7 changed files
with
233 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.