MCPcopy Create free account
hub / github.com/parse-community/parse-server / initialize

Function initialize

spec/PointerPermissions.spec.js:2022–2040  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2020 let obj2;
2021
2022 async function initialize() {
2023 await Config.get(Parse.applicationId).schemaCache.clear();
2024
2025 [user1, user2] = await Promise.all([createUser('user1'), createUser('user2')]);
2026
2027 obj1 = new Parse.Object(className, {
2028 owner: user1,
2029 revision: 0,
2030 });
2031
2032 obj2 = new Parse.Object(className, {
2033 owner: user2,
2034 revision: 0,
2035 });
2036
2037 await Parse.Object.saveAll([obj1, obj2], {
2038 useMasterKey: true,
2039 });
2040 }
2041
2042 beforeEach(async () => {
2043 await initialize();

Callers 1

Calls 4

createUserFunction · 0.70
logInFunction · 0.70
clearMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…