Skip to content

Commit

Permalink
Merge pull request #355 from prashn64/param-dashes
Browse files Browse the repository at this point in the history
add a unit test for inline params with dashes
  • Loading branch information
smfoote committed Oct 23, 2013
2 parents f854cea + 4d2d0e0 commit 9e91e96
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/jasmine-test/spec/coreTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,13 @@ var coreTests = [
context: { helper: function(chunk, context, bodies, params) { return chunk.write(params.foo); } },
expected: "3.14159",
message: "Block handlers syntax should support decimal number parameters"
},
{
name: "inline params with dashes",
source: "{#helper data-foo=\"dashes\" /}",
context: { helper: function(chunk, context, bodies, params) { return chunk.write(params['data-foo']); } },
expected: "dashes",
message: "should test parameters with dashes"
}
]
},
Expand Down

0 comments on commit 9e91e96

Please sign in to comment.