hoodiehq / hoodie-account-client

:dog: Account client API for the browser
https://hoodiehq.github.io/hoodie-account-client
Apache License 2.0
11 stars 24 forks source link

test: admin.signOut() throws error when signed out #113

Closed capellini closed 8 years ago

capellini commented 8 years ago

admin.signOut() throws TypeError: Cannot read property 'session' of null when a user is not signed in. This commit contains documentation and failing unit/integration test updates in order to catch the condition where a user has attempted to sign out without being signed in and, rather than throwing the current error, throw an UnauthenticatedError: Not signed in error, instead.

closes hoodiehq/camp#12

capellini commented 8 years ago

@gr2m Thanks for your guidance. Corrections made.

varjmes commented 8 years ago

LGTM ✨

gr2m commented 8 years ago

Great work, thanks @capellini 👏 LGTM

gr2m commented 8 years ago

released as v4.1.1