-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix failing tests by using proper query permission
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -503,22 +503,22 @@ describe('DatabaseController', () => { | |
|
||
const query = new Parse.Query(Parse.User); | ||
query.equalTo('username', 'EXAMPLE'); | ||
const result = await query.find(); | ||
const result = await query.find({ useMasterKey: true }); | ||
expect(result.length).toEqual(0); | ||
|
||
const query2 = new Parse.Query(Parse.User); | ||
query2.equalTo('email', '[email protected]'); | ||
const result2 = await query2.find(); | ||
const result2 = await query2.find({ useMasterKey: true }); | ||
expect(result2.length).toEqual(0); | ||
|
||
const query3 = new Parse.Query(Parse.User); | ||
query3.equalTo('username', 'example'); | ||
const result3 = await query3.find(); | ||
const result3 = await query3.find({ useMasterKey: true }); | ||
expect(result3.length).toEqual(1); | ||
|
||
const query4 = new Parse.Query(Parse.User); | ||
query4.equalTo('email', '[email protected]'); | ||
const result4 = await query4.find(); | ||
const result4 = await query4.find({ useMasterKey: true }); | ||
expect(result4.length).toEqual(1); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters