no message

This commit is contained in:
Francis Lessard
2016-02-13 08:18:43 -05:00
parent 220a13392d
commit 83c0f92553
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ describe('Parse Role testing', () => {
}).then((x) => {
x.set('foo', 'baz');
// This should fail:
return x.save();
return x.save({},{sessionToken: ""});
}).then((x) => {
fail('Should not have been able to save.');
}, (e) => {

View File

@@ -80,7 +80,7 @@ Auth.prototype.getUserRoles = function() {
return Promise.resolve(this.userRoles);
}
if (this.rolePromise) {
return rolePromise;
return this.rolePromise;
}
this.rolePromise = this._loadRoles();
return this.rolePromise;