forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use absolute-url instead of passing baseUrl's around
While at it, some minor fixes and improvements, and make account enrollment emails contain the right url.
- Loading branch information
Showing
9 changed files
with
31 additions
and
52 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 |
---|---|---|
|
@@ -27,8 +27,8 @@ | |
function (test, expect) { | ||
Meteor.call("getInterceptedEmails", email1, expect(function (error, result) { | ||
test.notEqual(result, undefined); | ||
test.equal(result.length, 1); | ||
var content = result[0]; | ||
test.equal(result.length, 2); // the first is the email validation | ||
var content = result[1]; | ||
|
||
var match = content.match( | ||
new RegExp(window.location.protocol + "//" + | ||
|
@@ -82,7 +82,7 @@ | |
email2 = Meteor.uuid() + "[email protected]"; | ||
email3 = Meteor.uuid() + "[email protected]"; | ||
Meteor.createUser( | ||
{email: email2, password: 'foobar', validation: true}, | ||
{email: email2, password: 'foobar'}, | ||
expect(function (error) { | ||
test.equal(error, undefined); | ||
})); | ||
|
@@ -109,7 +109,6 @@ | |
function (test, expect) { | ||
Meteor.call( | ||
"addEmailForTestAndValidate", email3, | ||
window.location.protocol + "//" + window.location.host + "/" /*appBaseUrl*/, | ||
expect(function (error, result) { | ||
test.isFalse(error); | ||
})); | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,8 @@ if (Meteor.is_client) (function () { | |
var username = Meteor.uuid(); | ||
var username2 = Meteor.uuid(); | ||
var username3 = Meteor.uuid(); | ||
var email = Meteor.uuid() + '@example.com'; | ||
// use -intercept so that we don't print to the console | ||
var email = Meteor.uuid() + '[email protected]'; | ||
var password = 'password'; | ||
var password2 = 'password2'; | ||
var password3 = 'password3'; | ||
|
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