summaryrefslogtreecommitdiffstats
path: root/spec/string-params.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/string-params.js')
-rw-r--r--spec/string-params.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/string-params.js b/spec/string-params.js
index 920b855..1cebc6f 100644
--- a/spec/string-params.js
+++ b/spec/string-params.js
@@ -158,4 +158,19 @@ describe('string params mode', function() {
var result = template({}, {helpers: helpers});
equals(result, "WITH");
});
+
+ it('should handle DATA', function() {
+ var template = CompilerContext.compile('{{foo @bar}}', { stringParams: true });
+
+ var helpers = {
+ foo: function(bar, options) {
+ equal(bar, 'bar');
+ equal(options.types[0], 'DATA');
+ return 'Foo!';
+ }
+ };
+
+ var result = template({}, { helpers: helpers });
+ equal(result, 'Foo!');
+ });
});