Skip to content

Commit 5825abf

Browse files
mtrezzaEmpiDev
authored andcommitted
improve test description
Signed-off-by: Manuel <[email protected]>
1 parent 34f7741 commit 5825abf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/CloudCode.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ describe('Cloud Code', () => {
202202
}
203203
});
204204

205-
it('beforeFind can short circuit', async () => {
205+
it('beforeFind can return object without DB operation', async () => {
206206
Parse.Cloud.beforeFind('beforeFind', () => {
207207
return new Parse.Object('TestObject', { foo: 'bar' });
208208
});
@@ -216,7 +216,7 @@ describe('Cloud Code', () => {
216216
expect(newObj.toJSON()).toEqual({ foo: 'bar' });
217217
});
218218

219-
it('beforeFind can short circuit arrays', async () => {
219+
it('beforeFind can return array of objects without DB operation', async () => {
220220
Parse.Cloud.beforeFind('beforeFind', () => {
221221
return [new Parse.Object('TestObject', { foo: 'bar' })];
222222
});
@@ -230,7 +230,7 @@ describe('Cloud Code', () => {
230230
expect(newObj.toJSON()).toEqual({ foo: 'bar' });
231231
});
232232

233-
it('beforeFind can short circuit get', async () => {
233+
it('beforeFind can return object for get query without DB operation', async () => {
234234
Parse.Cloud.beforeFind('beforeFind', () => {
235235
return [new Parse.Object('TestObject', { foo: 'bar' })];
236236
});
@@ -244,7 +244,7 @@ describe('Cloud Code', () => {
244244
expect(newObj.toJSON()).toEqual({ foo: 'bar' });
245245
});
246246

247-
it('beforeFind can short circuit empty array', async () => {
247+
it('beforeFind can return empty array without DB operation', async () => {
248248
Parse.Cloud.beforeFind('beforeFind', () => {
249249
return [];
250250
});

0 commit comments

Comments
 (0)