diff options
author | machty <machty@gmail.com> | 2015-12-10 12:25:20 -0500 |
---|---|---|
committer | machty <machty@gmail.com> | 2015-12-10 14:22:45 -0500 |
commit | 3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a (patch) | |
tree | 5b8e28cafb942cd7ed448e07e5e6076d95e73968 /spec/subexpressions.js | |
parent | 205c61cfb1acdb599bbdfcf2d356641254e09e5c (diff) | |
download | handlebars.js-3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a.zip handlebars.js-3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a.tar.gz handlebars.js-3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a.tar.bz2 |
Remove stringParams and trackIds mode
Closes #1145
Diffstat (limited to 'spec/subexpressions.js')
-rw-r--r-- | spec/subexpressions.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/spec/subexpressions.js b/spec/subexpressions.js index dad741e..3810eb8 100644 --- a/spec/subexpressions.js +++ b/spec/subexpressions.js @@ -162,50 +162,6 @@ describe('subexpressions', function() { shouldCompileTo(string, [context, helpers], '<input aria-label="Name" placeholder="Example User" />'); }); - it('in string params mode,', function() { - var template = CompilerContext.compile('{{snog (blorg foo x=y) yeah a=b}}', {stringParams: true}); - - var helpers = { - snog: function(a, b, options) { - equals(a, 'foo'); - equals(options.types.length, 2, 'string params for outer helper processed correctly'); - equals(options.types[0], 'SubExpression', 'string params for outer helper processed correctly'); - equals(options.types[1], 'PathExpression', 'string params for outer helper processed correctly'); - return a + b; - }, - - blorg: function(a, options) { - equals(options.types.length, 1, 'string params for inner helper processed correctly'); - equals(options.types[0], 'PathExpression', 'string params for inner helper processed correctly'); - return a; - } - }; - - var result = template({ - foo: {}, - yeah: {} - }, {helpers: helpers}); - - equals(result, 'fooyeah'); - }); - - it('as hashes in string params mode', function() { - var template = CompilerContext.compile('{{blog fun=(bork)}}', {stringParams: true}); - - var helpers = { - blog: function(options) { - equals(options.hashTypes.fun, 'SubExpression'); - return 'val is ' + options.hash.fun; - }, - bork: function() { - return 'BORK'; - } - }; - - var result = template({}, {helpers: helpers}); - equals(result, 'val is BORK'); - }); - it('subexpression functions on the context', function() { var string = '{{foo (bar)}}!'; var context = { |