-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad7c06d
commit 88f0670
Showing
3 changed files
with
11 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,16 +21,22 @@ define([ | |
registerSuite({ | ||
name: 'cms-passport', | ||
'should have /proxy route': function () { | ||
this.skip(); | ||
}, | ||
'should have a /auth/google/callback route': function () { | ||
this.skip(); | ||
}, | ||
'should have a /auth/google route': function () { | ||
this.skip(); | ||
}, | ||
'should have /auth/me route': function () { | ||
this.skip(); | ||
}, | ||
'should have /auth/register route': function () { | ||
this.skip(); | ||
}, | ||
'POST - /register - should return user on successful registration': function () { | ||
this.skip(); | ||
var dfd = this.async(); | ||
request(app) | ||
.post('/register') | ||
|
@@ -44,9 +50,10 @@ define([ | |
} | ||
}) | ||
.expect("Content-Type", /json/) | ||
.expect(201, dfd.resolve); | ||
.expect(201, dfd.resolve()); | ||
}, | ||
'POST - /login - should return user on successful login': function () { | ||
this.skip(); | ||
var dfd = this.async(); | ||
var validUser = { | ||
username: '[email protected]', | ||
|