Commit 9451c221 authored by nimrod's avatar nimrod
Browse files

- Fix test on Travis CI.

parent cd1c084f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -9,9 +9,10 @@ export name='John'
test "$(echo 'Hello {{ name if name is defined else 'world' }}.' | template)" = "Hello John."

echo Testing arguments and reading/ writing to file.
echo '{{ USER }}' > "$infile"
echo '{{ name }}' > "$infile"
export name='John'
template --output "$outfile" "$infile"
test "$(cat $outfile)" = "$USER"
test "$(cat $outfile)" = "$name"

echo Testing JSON parsing.
export json='{"a": 1, "b": 2}'