Commit 91245854 authored by Robert Knight's avatar Robert Knight

Add a missing test for log out error handling

parent d3add98a
......@@ -308,6 +308,16 @@ describe('sidebar/services/session', function () {
assert.calledWith(fakeStore.updateProfile, loggedOutProfile);
});
});
it('displays an error if logging out fails', async () => {
fakeAuth.logout.rejects(new Error('Could not revoke token'));
try {
await session.logout();
} catch (e) {
// Ignored.
}
assert.calledWith(fakeToastMessenger.error, 'Log out failed');
});
});
context('when another client changes the current login', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment