BUG: Fix token path (#23)
This commit is contained in:
parent
55a1c4fca6
commit
8309486a8a
3 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ moduleFor('authenticator:application', 'Unit | application', {
|
|||
test('should restore session when token is present', function(assert) {
|
||||
assert.expect(1);
|
||||
const authenticator = this.subject();
|
||||
const data = {data: {token: 'foo'}};
|
||||
const data = {data: {attributes: {'auth-token': 'foo'}}};
|
||||
return authenticator.restore(data).then((obs) => {
|
||||
assert.equal(obs, data);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue