Clears session on password change

- Fixes error type when passing an invalid session token
This commit is contained in:
Florent Vilmart
2016-02-15 10:12:53 -05:00
parent cf7202f80a
commit ea07eb506d
3 changed files with 7 additions and 7 deletions

View File

@@ -1606,7 +1606,9 @@ describe('Parse.User testing', () => {
}).then(function(newUser) {
fail('Session should have been invalidated');
done();
}, function() {
}, function(err) {
expect(err.code).toBe(209);
expect(err.message).toBe('invalid session token');
done();
});
});