supertest-session
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -22,2 +22,5 @@ var assign = require('object-assign'), | ||
app = http.createServer(app); | ||
} | ||
if (app instanceof http.Server) { | ||
url = supertest.Test.prototype.serverAddress(app, '/'); | ||
@@ -24,0 +27,0 @@ } |
{ | ||
"name": "supertest-session", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Cookie-based session persistence for Supertest", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -87,2 +87,15 @@ var assert = require('assert'), | ||
}); | ||
describe('(#30) requesting URL of instantiated app', function () { | ||
it('behaves correctly', function (done) { | ||
var server = http.createServer(app); | ||
var sess = session(server); | ||
sess | ||
.get('/') | ||
.expect(200) | ||
.expect('GET,,1') | ||
.end(done); | ||
}); | ||
}); | ||
}); | ||
@@ -89,0 +102,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12818
226