orator-session
Advanced tools
Comparing version 1.0.14 to 1.0.15
{ | ||
"name": "orator-session", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Session state and authentication manager for Orator Restful web API server.", | ||
@@ -5,0 +5,0 @@ "main": "source/Orator-Session.js", |
@@ -61,3 +61,3 @@ /** | ||
return fCallback(null, null); | ||
return fCallback(null); | ||
} | ||
@@ -64,0 +64,0 @@ |
@@ -62,3 +62,3 @@ /** | ||
( | ||
'Orator Session with Orator web Server', | ||
'InMemory Orator Session with Orator web Server', | ||
function() | ||
@@ -309,2 +309,22 @@ { | ||
( | ||
'Request a session that doesnt exist', | ||
function(fDone) | ||
{ | ||
libSuperTest2 | ||
.get('1.0/CheckSession') | ||
.set( 'Cookie', 'UserSession=DoesNotExist' ) | ||
.end( | ||
function (pError, pResponse) | ||
{ | ||
Expect(pResponse.body.LoggedIn) | ||
.to.equal(false); | ||
Expect(pResponse.statusCode) | ||
.to.equal(200); | ||
fDone(); | ||
} | ||
); | ||
} | ||
); | ||
test | ||
( | ||
'Shutdown Orator WebServer', | ||
@@ -311,0 +331,0 @@ function() |
@@ -63,3 +63,3 @@ /** | ||
( | ||
'Orator Session with Orator web Server', | ||
'Memcached Orator Session with Orator web Server', | ||
function() | ||
@@ -310,2 +310,22 @@ { | ||
( | ||
'Request a session that doesnt exist', | ||
function(fDone) | ||
{ | ||
libSuperTest2 | ||
.get('1.0/CheckSession') | ||
.set( 'Cookie', 'UserSession=DoesNotExist' ) | ||
.end( | ||
function (pError, pResponse) | ||
{ | ||
Expect(pResponse.body.LoggedIn) | ||
.to.equal(false); | ||
Expect(pResponse.statusCode) | ||
.to.equal(200); | ||
fDone(); | ||
} | ||
); | ||
} | ||
); | ||
test | ||
( | ||
'Shutdown Orator WebServer', | ||
@@ -312,0 +332,0 @@ function() |
38206
1292