rjz / supertest-session

Persistent sessions for supertest
Other
89 stars 21 forks source link

Simplifies api #14

Closed rjz closed 9 years ago

rjz commented 9 years ago

This change brings the supertest-session API closer in-line with the supertest API it wraps. Dependents adopting the new API should create sessions using the exported factory function:

var request = require('supertest-session');

request(myApp, myOpts)
  .get('/hello')
  ...

The API remains back-compatible for the time being, though legacy usage should be considered deprecated and will be removed in the future.