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

Function loadTestData

spec/ParseQuery.Aggregate.spec.js:22–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20});
21
22const loadTestData = () => {
23 const data1 = {
24 score: 10,
25 name: 'foo',
26 sender: { group: 'A' },
27 views: 900,
28 size: ['S', 'M'],
29 };
30 const data2 = {
31 score: 10,
32 name: 'foo',
33 sender: { group: 'A' },
34 views: 800,
35 size: ['M', 'L'],
36 };
37 const data3 = {
38 score: 10,
39 name: 'bar',
40 sender: { group: 'B' },
41 views: 700,
42 size: ['S'],
43 };
44 const data4 = {
45 score: 20,
46 name: 'dpl',
47 sender: { group: 'B' },
48 views: 700,
49 size: ['S'],
50 };
51 const obj1 = new TestObject(data1);
52 const obj2 = new TestObject(data2);
53 const obj3 = new TestObject(data3);
54 const obj4 = new TestObject(data4);
55 return Parse.Object.saveAll([obj1, obj2, obj3, obj4]);
56};
57
58const get = function (url, options) {
59 options.qs = options.body;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected