Fix purging empty class (#4676)

* Fix purging empty class

* remove fit
This commit is contained in:
Diamond Lewis
2018-03-25 08:41:25 -05:00
committed by GitHub
parent 710848938f
commit 0fd8493929
2 changed files with 10 additions and 0 deletions

View File

@@ -1493,6 +1493,11 @@ describe('miscellaneous', function() {
});
});
it('purge empty class', (done) => {
const testSchema = new Parse.Schema('UnknownClass');
testSchema.purge().then(done).catch(done.fail);
});
it('should not update schema beforeSave #2672', (done) => {
Parse.Cloud.beforeSave('MyObject', (request, response) => {
if (request.object.get('secret')) {