Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KeyringController tests #75

Merged
merged 6 commits into from
Mar 26, 2019
Merged

Add KeyringController tests #75

merged 6 commits into from
Mar 26, 2019

Conversation

estebanmino
Copy link
Contributor

This PR adds full coverage tests of KeyringController.

Resolves #66

Copy link
Contributor

@brunobar79 brunobar79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Just one minor comment

@@ -184,7 +211,7 @@ export class KeyringController extends BaseController<BaseConfig, KeyringState>
* @param password - Password of the keyring
* @returns - Promise resolving to the seed phrase
*/
exportSeedPhrase(password: string): Promise<string> {
exportSeedPhrase(password: string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the return type here?

Copy link
Contributor Author

@estebanmino estebanmino Mar 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't return a promise, only a string. Found with the test for this method.

Copy link
Contributor

@bitpshr bitpshr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huge PR, thanks for doing this.

@estebanmino estebanmino merged commit 43adebd into master Mar 26, 2019
@estebanmino estebanmino deleted the add-keyring-tests branch March 26, 2019 16:57
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* improve types definition

* testing progress

* add types and istanbul ignore

* add rest of tests

* add missing doc

* handle async methods tests
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* improve types definition

* testing progress

* add types and istanbul ignore

* add rest of tests

* add missing doc

* handle async methods tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants