summaryrefslogtreecommitdiffstats
path: root/spec/basic.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-05-06 10:47:56 -0500
committerkpdecker <kpdecker@gmail.com>2015-05-06 10:48:23 -0500
commit569f2885513d078bbd56128edbb948f130de3097 (patch)
tree455f3d38aff4bc5f81ca9b5a098e45e192ea5871 /spec/basic.js
parent8cba84df119c317fcebc49fb285518542ca9c2d0 (diff)
downloadhandlebars.js-569f2885513d078bbd56128edbb948f130de3097.zip
handlebars.js-569f2885513d078bbd56128edbb948f130de3097.tar.gz
handlebars.js-569f2885513d078bbd56128edbb948f130de3097.tar.bz2
Add tests for string contexts
Fixes #1013
Diffstat (limited to 'spec/basic.js')
-rw-r--r--spec/basic.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/basic.js b/spec/basic.js
index f9b781b..49ebbe5 100644
--- a/spec/basic.js
+++ b/spec/basic.js
@@ -22,6 +22,10 @@ describe('basic context', function() {
'It works if all the required keys are provided');
});
+ it('compiling with a string context', function() {
+ shouldCompileTo('{{.}}{{length}}', 'bye', 'bye3');
+ });
+
it('compiling with an undefined context', function() {
shouldCompileTo('Goodbye\n{{cruel}}\n{{world.bar}}!', undefined, 'Goodbye\n\n!');