Set default protectedFields and remove previous filter logic

This commit is contained in:
awgeorge
2019-01-28 07:50:21 +00:00
committed by Arthur Cinader
parent 95831a5b22
commit b343de0c70
8 changed files with 91 additions and 14 deletions

View File

@@ -257,6 +257,7 @@ describe('ParseLiveQueryServer', function() {
find: {},
update: {},
delete: { '*': true },
protectedFields: {},
});
expect(deleteSpy).toHaveBeenCalled();
@@ -270,6 +271,7 @@ describe('ParseLiveQueryServer', function() {
find: {},
update: {},
delete: { '*': true },
protectedFields: {},
});
done();
})
@@ -1920,6 +1922,7 @@ describe('LiveQueryController', () => {
find: {},
update: {},
delete: { '*': true },
protectedFields: {},
});
expect(deleteSpy).toHaveBeenCalled();
@@ -1933,6 +1936,7 @@ describe('LiveQueryController', () => {
find: {},
update: {},
delete: { '*': true },
protectedFields: {},
});
done();
})