-
Notifications
You must be signed in to change notification settings - Fork 96
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
Increase coverage on failing modules - Closes #561 #612
Conversation
Fix "Account not found" error in Delegates - Closes #552
const settingsUpdated = sinon.spy(); | ||
const accountUpdated = sinon.spy(); |
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.
You can define let accountUpdated
here, but sinon.spy();
should be inside of beforeEach
. The current way, the same spy is used in all it
s, so the tests are not isolated and can affect each other.
96523a7
to
bd6d5cb
Compare
bd6d5cb
to
c477384
Compare
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.
Thank you, Pablo.
What was the problem?
'src/components/setting/setting.js', does not meet coverage threesholds
How did I fix it?
Add missing tests for asserting autoLog, advanceMode, expireTime, settings flags
How to test it?
run the follwoing
assert that settings.js shows the following coverage:
Review checklist