this package is created for project aex,
but it is general to all node.js http processing.
It is on it's early stage, any contribution is appriciated.
It provide abstract class Store and Session.
this package is created for project aex,
but it is general to all node.js http processing.
It is on it's early stage, any contribution is appriciated.
It provide abstract class Store and Session.
'use strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
var request = require('supertest'), | |
should = require('should'), | |
app = require('../server'); | |
var Cookies; | |
describe('Functional Test <Sessions>:', function () { | |
it('should create user session for valid user', function (done) { | |
request(app) | |
.post('/v1/sessions') |