Skip to content

Commit

Permalink
Test added: applyNext() should not return value from BEMJSON.
Browse files Browse the repository at this point in the history
Like it works in v1.x.

See #379
  • Loading branch information
miripiruni committed Nov 10, 2016
1 parent 281e12b commit e0f9718
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/runtime-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,21 @@ describe('BEMHTML compiler/Runtime', function() {
'>Title link content</div></h2></div>');
});

it('applyNext() should not return value from BEMJSON (as it works in v1.x)',
function() {
test(function() {
block('link').mix()(function() {
return [ { block: 'mix' } ].concat(applyNext() || []);
});
block('root').content()({
block: 'link',
mix: { block: 'a', elem: 'b', elemMods: { c: 'd' } }
});
},
{ block: 'root' },
'<div class="root"><div class="link mix a__b a__b_c_d"></div></div>');
});

it('should check that mix do not overwrite jsParams', function() {
test(function() {
block('b1')(
Expand Down

0 comments on commit e0f9718

Please sign in to comment.