generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for error cases in did-resolver.spec.ts (#561)
* Add tests for error cases in did-resolver.spec.ts This commit adds new tests in did-resolver.spec.ts to cover some of the previously uncovered error-related branching paths. This commit contributes partly to issue #136. Based on the output of `npm run test:node` before vs. after this commit, the `% Branch` is now increased by 9.66 percentage points, and the `% Stmt` and `% Lines` by 3.29 percentage points. Before: ``` did-resolver.ts | 87.91 | 78.57 | 66.66 | 87.91 ``` After: ``` did-resolver.ts | 91.2 | 88.23 | 66.66 | 91.2 | ``` * Add tests for error cases in did-resolver.spec.ts This commit adds new tests in did-resolver.spec.ts to cover some of the previously uncovered error-related branching paths. This commit contributes partly to issue #136. Based on the output of `npm run test:node` before vs. after this commit, the `% Branch` is now increased by 9.66 percentage points, and the `% Stmt` and `% Lines` by 3.29 percentage points. Before: ``` did-resolver.ts | 87.91 | 78.57 | 66.66 | 87.91 ``` After: ``` did-resolver.ts | 92.34 | 94.11 | 66.66 | 92.34 | ``` * Add tests for error cases in did-resolver.spec.ts This commit adds new tests in did-resolver.spec.ts to cover some of the previously uncovered error-related branching paths. This commit contributes partly to issue #136. Based on the output of `npm run test:node` before vs. after this commit, the `% Branch` is now increased by 9.66 percentage points, and the `% Stmt` and `% Lines` by 3.29 percentage points. Before: ``` did-resolver.ts | 87.91 | 78.57 | 66.66 | 87.91 ``` After: ``` did-resolver.ts | 92.34 | 94.11 | 66.66 | 92.34 | ``` * Arrange new Did related error codes alphabetically * Use a different code for DidNotString
- Loading branch information
Showing
6 changed files
with
75 additions
and
6 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
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