-
-
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.
Removes adaptiveCollection from DatabaseController
- All collections manipulations are now handled by a DBController - Adds optional flags to configure an unsafe databaseController for direct access - Adds ability to configure RestWrite with multiple writes - Moves some transfirmations to MongoTransform as they output specific code
- Loading branch information
1 parent
7dca57e
commit 55d91e4
Showing
16 changed files
with
292 additions
and
268 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
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
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
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
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 |
---|---|---|
|
@@ -212,7 +212,10 @@ describe("Email Verification", () => { | |
.then((user) => { | ||
return user.save(); | ||
}).then((user) => { | ||
return Parse.User.requestPasswordReset("[email protected]"); | ||
return Parse.User.requestPasswordReset("[email protected]").catch((err) => { | ||
fail('Should not fail requesting a password'); | ||
done(); | ||
}) | ||
}).then(() => { | ||
expect(calls).toBe(2); | ||
done(); | ||
|
@@ -497,7 +500,7 @@ describe("Password Reset", () => { | |
Parse.User.requestPasswordReset('[email protected]', { | ||
error: (err) => { | ||
console.error(err); | ||
fail("Should not fail"); | ||
fail("Should not fail requesting a password"); | ||
done(); | ||
} | ||
}); | ||
|
@@ -574,7 +577,7 @@ describe("Password Reset", () => { | |
|
||
Parse.User.logIn("zxcv", "hello").then(function(user){ | ||
let config = new Config('test'); | ||
config.database.adaptiveCollection('_User') | ||
config.database.adapter.adaptiveCollection(config.database.collectionPrefix+'_User') | ||
.then(coll => coll.find({ 'username': 'zxcv' }, { limit: 1 })) | ||
.then((results) => { | ||
// _perishable_token should be unset after reset password | ||
|
Oops, something went wrong.