Skip to content

Commit 2ca9bc5

Browse files
author
Antoine Cormouls
committed
Need to Fix Test Callback
1 parent 2d73f23 commit 2ca9bc5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/ParseLiveQueryServer.spec.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,17 +1295,18 @@ describe('ParseLiveQueryServer', function() {
12951295
shouldReturn = false;
12961296
return this;
12971297
},
1298-
find() {
1298+
each(callback) {
12991299
if (!shouldReturn) {
1300-
return Promise.resolve([]);
1300+
return Promise.resolve();
13011301
}
13021302
//Return a role with the name "liveQueryRead" as that is what was set on the ACL
13031303
const liveQueryRole = new Parse.Role(
13041304
'liveQueryRead',
13051305
new Parse.ACL()
13061306
);
13071307
liveQueryRole.id = 'abcdef1234';
1308-
return Promise.resolve([liveQueryRole]);
1308+
callback(liveQueryRole)
1309+
return Promise.resolve();
13091310
},
13101311
};
13111312
});

0 commit comments

Comments
 (0)