Skip to content

Commit

Permalink
Add test to check that layout is used in default view rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Sep 1, 2015
1 parent fc81d69 commit 60efc45
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/integration/router.viewRendering.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ describe('router :: ', function() {
done();
});
});

it('should wrap the view in the default layout', function(done) {

httpHelper.testRoute('get', '', function(err, response) {
if (err) return done(new Error(err));
assert(response.body.indexOf('<html>') > -1);
done();
});
});

});

describe('with no specified routing', function() {
Expand Down

0 comments on commit 60efc45

Please sign in to comment.