From 109e34ae927f9bfe10cf5b1693db202d9cb0a827 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Tue, 8 Apr 2014 21:37:27 -0500 Subject: [PATCH] fix broken test --- test/fixtures/helloworld.jade | 2 +- test/test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixtures/helloworld.jade b/test/fixtures/helloworld.jade index 8574881..286e668 100644 --- a/test/fixtures/helloworld.jade +++ b/test/fixtures/helloworld.jade @@ -1,2 +1,2 @@ h1 Hello, tester! -h2 title +h2= title diff --git a/test/test.js b/test/test.js index f6afe69..01bd35f 100644 --- a/test/test.js +++ b/test/test.js @@ -19,7 +19,7 @@ function expectStream(t, options){ return through.obj(function(file, enc, cb){ options.filename = filename; var compiled = compiler(fs.readFileSync(filename), options); - var expected = options.client ? compiled : compiled(options.data); + var expected = options.client ? compiled : compiled(options.data || options.locals); t.equal(expected, String(file.contents)); t.equal(extname(file.path), ext); if(file.relative){