no message
This commit is contained in:
@@ -49,7 +49,7 @@ describe('Parse Role testing', () => {
|
|||||||
}).then((x) => {
|
}).then((x) => {
|
||||||
x.set('foo', 'baz');
|
x.set('foo', 'baz');
|
||||||
// This should fail:
|
// This should fail:
|
||||||
return x.save();
|
return x.save({},{sessionToken: ""});
|
||||||
}).then((x) => {
|
}).then((x) => {
|
||||||
fail('Should not have been able to save.');
|
fail('Should not have been able to save.');
|
||||||
}, (e) => {
|
}, (e) => {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ Auth.prototype.getUserRoles = function() {
|
|||||||
return Promise.resolve(this.userRoles);
|
return Promise.resolve(this.userRoles);
|
||||||
}
|
}
|
||||||
if (this.rolePromise) {
|
if (this.rolePromise) {
|
||||||
return rolePromise;
|
return this.rolePromise;
|
||||||
}
|
}
|
||||||
this.rolePromise = this._loadRoles();
|
this.rolePromise = this._loadRoles();
|
||||||
return this.rolePromise;
|
return this.rolePromise;
|
||||||
|
|||||||
Reference in New Issue
Block a user