Skip to content

Instantly share code, notes, and snippets.

View m3kh66's full-sized avatar
🏠
Working from home

m3kh66

🏠
Working from home
View GitHub Profile
@m3kh66
m3kh66 / account-spec.js
Created March 12, 2016 20:16
How to test a request protected with express.js csurf and supertest?
'use strict';
var request = require('supertest');
var jsdom = require('jsdom');
var app = require('../../app');
describe('account middleware', () => {
var server;