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

Function validator

spec/CloudCode.Validator.spec.js:114–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113 it('pass function to validator', async done => {
114 const validator = request => {
115 expect(request).toBeDefined();
116 expect(request.params).toBeDefined();
117 expect(request.master).toBe(false);
118 expect(request.user).toBeUndefined();
119 expect(request.installationId).toBeDefined();
120 expect(request.log).toBeDefined();
121 expect(request.headers).toBeDefined();
122 expect(request.functionName).toBeDefined();
123 expect(request.context).toBeDefined();
124 done();
125 };
126 Parse.Cloud.define(
127 'myFunction',
128 () => {

Callers 4

handleAuthDataValidationFunction · 0.85
handleChallengeMethod · 0.85
helper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected