Skip to content

Commit

Permalink
fixing code commented by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
rcruzper committed Sep 3, 2019
1 parent d467565 commit b65e3d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/unit/lib/actuatorMiddlewareSpec.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ describe('actuator middleware', function () {
let infoRouter = actuator();

expect(infoRouter).to.equal(router);
// expect(express.Router).to.have.been.calledOnce;
expect(express.Router).to.have.been.calledOnce;
});

it('should mount the info route on the default endpoint', function () {
actuator();

// expect(router.get).to.have.been.calledThrice;
expect(router.get).to.have.been.calledThrice;
expect(router.get).to.have.been.calledWithExactly('/info', infoRoute);
});

Expand All @@ -56,7 +56,5 @@ describe('actuator middleware', function () {
actuator({unknownData: "/test"});

expect(router.get).to.have.been.calledWithExactly('/health', healthRoute);
// expect(router.get.body)
// console.log(router.)
});
});

0 comments on commit b65e3d6

Please sign in to comment.