Skip to content

Commit

Permalink
Test showing bug from issue #69
Browse files Browse the repository at this point in the history
Issue with filter arguments
  • Loading branch information
tbranyen committed Aug 27, 2015
1 parent 98d11f6 commit 7f559ba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/tests/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,17 @@ define(function(require, exports, module) {

assert.equal(output, "yrtporp");
});

it('will support multiple filter arguments via issue #69', function() {
var tmpl = combyne("{{ property|replace '-' ' ' }}");

tmpl.registerFilter("replace", function(val, start, end) {
return val.replace(start, end);
});

var output = tmpl.render({ property: "my-prop" });

assert.equal(output, "my prop");
});
});
});

0 comments on commit 7f559ba

Please sign in to comment.