-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
target | ||
target | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "multi-nodejs-test", | ||
"version": "1.0.0", | ||
"description": "Simple integration test with all relevant NodeJS-versions.", | ||
"keywords": [], | ||
"author": "Nils Knappmeier", | ||
"private": true, | ||
"license": "MIT", | ||
"dependencies": { | ||
"handlebars": "file:../.." | ||
}, | ||
"scripts": { | ||
"test": "node run-handlebars.js", | ||
"test-precompile": "handlebars precompile-test-template.txt.hbs" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
integration-testing/webpack-handlebars-loader-test-npm/test.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
npm install | ||
npm test | ||
|