well, they're more or less undocumented, so I have to actually check out
the source to see if they can be constructed with the properties we need.
There may also be more wrapped up in them than I expect, in which case more
work will be required.




On Tue, Mar 11, 2014 at 10:14 AM, 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
>
> so is the idea to construct the objects and attach properties as necessary?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/hayes/unpm/pull/22/files#r10484393>
> .
>



-- 
Andrew Winterman
714 362 6823