MCPcopy
hub / github.com/parse-community/parse-server / test

Function test

spec/CloudCode.spec.js:933–946  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

931 obj.save();
932
933 function test() {
934 const query = new Parse.Query('AfterSaveProof');
935 query.equalTo('proof', obj.id);
936 query.find().then(
937 function (results) {
938 expect(results.length).toEqual(1);
939 done();
940 },
941 function (error) {
942 fail(error);
943 done();
944 }
945 );
946 }
947 });
948
949 it('test afterSave ran on created object and returned a promise', function (done) {

Callers

nothing calls this directly

Calls 2

failFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected