chore: fix integration tests
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user