Skip to content
This repository has been archived by the owner on Feb 10, 2020. It is now read-only.

Commit

Permalink
re-enable test
Browse files Browse the repository at this point in the history
  • Loading branch information
kollhof committed May 7, 2016
1 parent 411ff75 commit d9a4c79
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions test/http/test-http.js
Expand Up @@ -62,22 +62,22 @@ describe('@http()', ()=> {
.calledWithExactly();
});

// it('should process requests calling service handler', async ()=> {
// let req = createRequest({
// method: 'GET',
// url: '/test/root/spam'
// });

// let resp = createResponse();

// await subjects.start();
// nodeSrv.listen.callArgWith(REQUEST_HANDLER, req, resp);

// expect(handleSpam)
// .to.have.been
// .calledOnce
// .calledWithExactly(req, resp);
// });
it('should process requests calling service handler', async ()=> {
let req = createRequest({
method: 'GET',
url: '/test/root/spam'
});

let resp = createResponse();

await subjects.start();
nodeSrv.listen.callArgWith(REQUEST_HANDLER, req, resp);

expect(handleSpam)
.to.have.been
.calledOnce
.calledWithExactly(req, resp);
});

it('should send INTERNAL_SERVER_ERROR if handler throws', async ()=> {
let err = new Error('handling request');
Expand Down

0 comments on commit d9a4c79

Please sign in to comment.