Skip to content

Instantly share code, notes, and snippets.

View rpelizzi's full-sized avatar

Riccardo Pelizzi rpelizzi

View GitHub Profile
@rpelizzi
rpelizzi / zappaTest.coffee
Last active December 16, 2015 19:30
Stateful serialized end-to-end testing for ZappaJS
request = require 'request'
_ = require 'underscore'
# API (to be used with mocha):
# it `will rock`, zappaTest [f1, f2, f3] to use a new agent
# or
# it 'will rock', zappaTest agent [f1, f2, f3] to import an existing agent
# The functions share a context that they can use to communicate, but the