Skip to content

Commit

Permalink
Tests: case with any subpredicates order
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed Feb 16, 2017
1 parent 0da1f69 commit 40ca41d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/templates-syntax-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ describe('Templates syntax', function() {
'<b></b>');
});

it('should work with any subpredicate order', function() {
test(function() {
tag().block('b').mod('m', 'v')('b');
},
{ block: 'b', mods: { m: 'v' } },
'<b class="b b_m_v"></b>');
});

it('should throw error when no block subpredicate', function() {
assert.throws(function() {
fixtures.compile(function() {
Expand Down

0 comments on commit 40ca41d

Please sign in to comment.