-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Conversation
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
* improve types definition * testing progress * add types and istanbul ignore * add rest of tests * add missing doc * handle async methods tests
* improve types definition * testing progress * add types and istanbul ignore * add rest of tests * add missing doc * handle async methods tests
This PR adds full coverage tests of
KeyringController
.Resolves #66