chore: fix integration tests

This commit is contained in:
Nils Knappmeier
2019-08-31 19:27:11 +02:00
parent f9cce4dd02
commit a26633f204
7 changed files with 41 additions and 16 deletions
@@ -1,14 +1,11 @@
// This test should run successfully with node 0.10 as long as Handlebars has been compiled before
// This test should run successfully with node 0.10++ as long as Handlebars has been compiled before
var assert = require('assert');
var Handlebars = require('../../');
var Handlebars = require('handlebars');
console.log('Testing build Handlebars with Node version ' + process.version);
console.log('Testing built Handlebars with Node version ' + process.version);
var output = Handlebars.compile('Author: {{author}}')({author: 'Yehuda'});
if (output !== 'Author: Yehuda') {
throw new Error('Compiled output (' + compiledOutput + ') did not match expected output (' + expectedOutput + ')');
}
assert.equal(output, 'Author: Yehuda')
var template = Handlebars.compile('Author: {{author}}');
var output = template({author: 'Yehuda'});
assert.strictEqual(output, 'Author: Yehuda');
console.log('Success');