Closed mbad0la closed 7 years ago
@mbad0la Could you please add tests for the change?
@gr2m , how can I test whether the reauthenticate
event has been emitted? Will I have to put up a listener on one of the test cases pertaining to reauthenticating a user having an invalid session?
I think unit tests will be good enough here. You can add them to test/unit/get-test.js
and test/unit/get-profile-test.js
. You will need to stub state.emitter.emit
like you see it in few of the other tests, and then check if it was called with reauthenticate
. Also check that cachedProperties.session.invalid
has been removed.
@gr2m
Ready for review!
@gr2m please review!
Fixes #146
Notify : @gr2m