Skip to content

Use strict equality in unit tests#9966

Merged
darkwing merged 5 commits intoMetaMask:developfrom
darkwing:strict-equal
Dec 3, 2020
Merged

Use strict equality in unit tests#9966
darkwing merged 5 commits intoMetaMask:developfrom
darkwing:strict-equal

Conversation

@darkwing
Copy link
Copy Markdown
Contributor

@darkwing darkwing commented Dec 1, 2020

Explanation:

VS Code is warning that the .equal and similar methods are deprecated, so I've gone to strict equality.

@darkwing darkwing requested a review from a team as a code owner December 1, 2020 20:33
@darkwing darkwing requested a review from Gudahtt December 1, 2020 20:33
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 1, 2020

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure we should change this minified code 🤔

Copy link
Copy Markdown
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 is fantastic! I've been considering doing this for a while now too - ever since VSCode started warning about it.

I think we're better off leaving the vendored minifed ethereum-tx file alone, but aside from that this looks good!

@darkwing darkwing force-pushed the strict-equal branch 4 times, most recently from 76a1ace to a2ef598 Compare December 2, 2020 21:57
Gudahtt
Gudahtt previously approved these changes Dec 2, 2020
Copy link
Copy Markdown
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!

@Gudahtt Gudahtt dismissed their stale review December 3, 2020 03:45

Needs to be rebased

Copy link
Copy Markdown
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!

@darkwing darkwing merged commit 42fd8b0 into MetaMask:develop Dec 3, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2020
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.

2 participants