Cleanup update (#1590)
* destructuring in DB controller * deleteObject in db adapter * Turns out we can't have delete by object ID because of ACLs... * Fix tests * destructure acl * Don't reject with object
This commit is contained in:
@@ -169,11 +169,11 @@ describe('Parse.ACL', () => {
|
||||
ok(object.get("ACL"));
|
||||
|
||||
// Start making requests by the public, which should all fail.
|
||||
Parse.User.logOut();
|
||||
|
||||
// Delete
|
||||
object.destroy().then(() => {
|
||||
Parse.User.logOut()
|
||||
.then(() => object.destroy())
|
||||
.then(() => {
|
||||
fail('destroy should fail');
|
||||
done();
|
||||
}, error => {
|
||||
expect(error.code).toEqual(Parse.Error.OBJECT_NOT_FOUND);
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user