Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Conversation

@adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented May 17, 2022

Bump test coverage from:
Screen Shot 2022-05-18 at 5 17 37 PM

To:
Screen Shot 2022-05-18 at 5 18 22 PM

The remaining coverage is proving a bit tricky. Will come back to it!

Partially fixes: #127

@adonesky1 adonesky1 force-pushed the improve-test-coverage branch 3 times, most recently from d90b832 to 113a97d Compare May 18, 2022 22:20
@adonesky1 adonesky1 marked this pull request as ready for review May 18, 2022 22:21
@adonesky1 adonesky1 requested a review from a team as a code owner May 18, 2022 22:21
@adonesky1 adonesky1 requested review from Gudahtt, danjm and mcmire May 18, 2022 22:21
@mcmire
Copy link
Contributor

mcmire commented May 31, 2022

Hey sorry I haven't gotten a chance to look at this lately but I will tomorrow!

@girlsavenue
Copy link

#144 #148 #147 #149 #146 #

@adonesky1 adonesky1 force-pushed the improve-test-coverage branch from 113a97d to fe99fa2 Compare December 12, 2022 15:08
test/index.js Outdated
const walletOneSeedWords =
'puzzle seed penalty soldier say clay field arctic metal hen cage runway';
const walletOneAddresses = ['0xef35ca8ebb9669a35c31b5f6f249a9941a812ac1'];
const walletOnePrivateAddress = [
Copy link
Member

@Gudahtt Gudahtt Dec 12, 2022

Choose a reason for hiding this comment

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

Nit: this seems to be a private key, not a private "address". Maybe worth renaming this variable to walletonePrivateKeys.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done here

Copy link
Member

Choose a reason for hiding this comment

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

Nit: maybe this should be plural since it's an array? I had made it singular at first as well in my comment, but then reconsidered and edited the comment to make ti plural.

test/index.js Outdated
origin: 'https://metamask.github.io',
};
const result = await keyringController.signMessage(inputParams);
expect(result).toBe(
Copy link
Member

Choose a reason for hiding this comment

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

Nit: for values like this that a reader can't reasonably be expected to be able to read, it might be worth using an inline snapshot. This communicates to the reader that the value was auto-generated, and makes it easier to update if we do ever intend to change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done here

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

Thanks, this looks great!

Once fix to a comment, but otherwise the changes all looks good, just had a few suggestions. Not sure why CI isn't running though.

@adonesky1 adonesky1 requested a review from Gudahtt December 12, 2022 15:40
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@adonesky1 adonesky1 merged commit 6868de7 into main Dec 12, 2022
@adonesky1 adonesky1 deleted the improve-test-coverage branch December 12, 2022 16:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve unit test coverage

5 participants