Closed miripiruni closed 8 years ago
it('should support this.reapply()', function() { test(function() { block('b1').content()(function() { this.wtf = 'fail'; return this.reapply({ block: 'b2' }); }); block('b2').content()(function() { return this.wtf || 'ok'; }); }, { block: 'b1' }, { block: 'b1', content: { block: 'b2', content: 'ok' } }); });
Actual result with v5.0.0: { block: 'b1', content: { block: 'b2', content: 'fail' } }
{ block: 'b1', content: { block: 'b2', content: 'fail' } }
See #126
Done.
Actual result with v5.0.0:
{ block: 'b1', content: { block: 'b2', content: 'fail' } }