fix: 🐛 all top level routes should redirect in unauthenticated

This commit is contained in:
Randall Morey committed 2020-08-18 16:49:45 -04:00
1 parent e7875849ec
commit 74b399b122
6 files changed
+40 -6

No files matched your search

@@ -23,12 +23,6 @@ module('Unit | Authenticator | password', function (hooks) {
session.invalidate();
});
test('it does not add an authorization header to application adapter on restore if no token is present', async function (assert) {
assert.expect(1);
authenticator.restore({ token: null });
assert.notOk(applicationAdapter?.headers?.Authorization);
});
test('it adds an authorization header to application adapter on restore', async function (assert) {
assert.expect(1);
authenticator.restore({ token: 'token1234' });