Skip to content

Commit

Permalink
Tests: apply() should lookup field from bemjson by default
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed Oct 26, 2017
1 parent e7b7d13 commit e3d1bdd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/runtime-apply-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,13 @@ describe('Runtime apply()', function() {
}, { block: 'b' },
undefined);
});

it('apply(\'\') should lookup field from bemjson by default', function() {
test(function() {
block('b').def()(function() {
return apply('test');
});
}, { block: 'b', test: 'bemjson' },
'bemjson');
});
});

0 comments on commit e3d1bdd

Please sign in to comment.