Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mvoorberg committed May 8, 2018
1 parent 5ecf501 commit 7ed1c24
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/ejsHandler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ describe('EjsHandler', function () {

describe('renderHtmlTemplate', function () {
it('should return HTML template contents, template folder as render option', function () {
const options = {};
const options = {
templateData: {
hostname: '/',
pageTitle: 'myPageTemplate',
envMessage: 'This page is in TESTING.'
}
};
const ejsHandler = new EjsHandler(server, options);
const renderData = {
foo: 123,
Expand Down Expand Up @@ -114,10 +120,10 @@ barUndefined=
baz=Labbat's Blue
foo=987
environment=TESTING
hostname=/
hostname=
pageTitle=
there.
envMessage=Message sent from TESTING.
envMessage=
\n`);
});

Expand Down

0 comments on commit 7ed1c24

Please sign in to comment.