Skip to content

Instantly share code, notes, and snippets.

View gaurav51289's full-sized avatar

Gaurav Chodwadia gaurav51289

  • San Jose, CA
View GitHub Profile
@joaoneto
joaoneto / login.test.js
Created March 13, 2013 13:49
Login session test with mocha
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')