Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Conversation

@ghost
Copy link

@ghost ghost commented Sep 20, 2018

Closes: #628

Copy link
Contributor

@valentinewallace valentinewallace left a comment

Choose a reason for hiding this comment

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

Clean, simple, works as advertised, solid test, LGTM 🥇

expect(nav.goWait, 'was not called');
expect(wallet.setPassword, 'was called with', {
password: '',
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't stub setPassword in this test since that's the logic you wanna test. Instead, I'd check if store.wallet.password equals ''.

@tanx tanx merged commit 453adbd into lightninglabs:master Oct 4, 2018
@ghost ghost deleted the clear-invalid-password branch October 4, 2018 09:06
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