Unless somebody has already done it, I'd rather not :)

I had plans to read the source for these two objects, but we'll see what time allows. 

Sent from my iPad

> On Mar 10, 2014, at 10:28 PM, jesse keane <notifications@github.com> wrote:
> 
> In test/handler.test.js:
> 
> > @@ -0,0 +1,37 @@
> > +var CLS = require('continuation-local-storage')
> > +  , unpm = CLS.createNamespace('unpm')
> > +  , http = require('http')
> > +
> > +var handler = require('../lib/handler')
> > +  , test = require('tape')
> > +
> > +test('sets the response to continuation local storage', response_is_set)
> > +test('sets the request to continuation local storage', request_is_set)
> > +test('500 if route returns error', server_errors_corretly)
> > +test('writes to response correctly', writes_to_response)
> > +test('sets route to c.l.s.', matches_correct_route)
> > +
> > +function request_is_set() {
> > +  var req = new http.IncomingMessage
> thoughts about faking these out to make introspection easier?
> 
> —
> Reply to this email directly or view it on GitHub.