MCPcopy Index your code
hub / github.com/parse-community/parse-server / validateSchemaStructure

Function validateSchemaStructure

spec/Schema.spec.js:1378–1382  ·  view source on GitHub ↗
(schema)

Source from the content-addressed store, hash-verified

1376 it('properly handles volatile _Schemas', async done => {
1377 await reconfigureServer();
1378 function validateSchemaStructure(schema) {
1379 expect(Object.prototype.hasOwnProperty.call(schema, 'className')).toBe(true);
1380 expect(Object.prototype.hasOwnProperty.call(schema, 'fields')).toBe(true);
1381 expect(Object.prototype.hasOwnProperty.call(schema, 'classLevelPermissions')).toBe(true);
1382 }
1383 function validateSchemaDataStructure(schemaData) {
1384 Object.keys(schemaData).forEach(className => {
1385 const schema = schemaData[className];

Callers 1

Schema.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected