Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix discovery/association integration tests

  • Loading branch information...
commit 0baa250976401613bf438c125f1e2fb08cb6ec41 1 parent 6c03716
@havard authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 test/openid_integration_tests.js
View
9 test/openid_integration_tests.js
@@ -39,7 +39,8 @@ exports.testResolveFailed = function(test)
exports.testEmptyUrl = function(test)
{
- openid.discover('',
+ openid.discover('',
+ true,
function(error, providers)
{
assert.ok(error);
@@ -51,6 +52,7 @@ exports.testEmptyUrl = function(test)
exports.testResolveRyanXri = function(test)
{
openid.discover('=ryan',
+ true,
function(error, providers)
{
assert.ok(!error);
@@ -62,6 +64,7 @@ exports.testResolveRyanXri = function(test)
exports.testResolveRedirect = function(test)
{
openid.discover('http://www.myopenid.com/xrds?username=swatinem.myopenid.com',
+ true,
function(error, providers)
{
assert.ok(!error);
@@ -73,6 +76,7 @@ exports.testResolveRedirect = function(test)
exports.testResolveGoogle = function(test)
{
openid.discover('http://www.google.com/accounts/o8/id',
+ true,
function(error, providers)
{
assert.ok(!error);
@@ -84,6 +88,7 @@ exports.testResolveGoogle = function(test)
exports.testResolveLiveJournalUser = function(test)
{
openid.discover('http://omnifarious.livejournal.com/',
+ true,
function(error, providers)
{
assert.ok(!error);
@@ -95,6 +100,7 @@ exports.testResolveLiveJournalUser = function(test)
exports.testResolveOpenID11 = function(test)
{
openid.discover('http://www.superheroofthemonth.com/',
+ true,
function(error, providers)
{
assert.ok(!error);
@@ -107,6 +113,7 @@ exports.testResolveOpenID11 = function(test)
function associateTest(url, test)
{
openid.discover(url,
+ true,
function(error, providers)
{
var provider = providers[0];
Please sign in to comment.
Something went wrong with that request. Please try again.