mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
New failing test for re-running helpers in #each within #with
This commit is contained in:
@@ -563,6 +563,23 @@ Hi there!
|
||||
{{/each}}
|
||||
</template>
|
||||
|
||||
<template name="spacebars_test_helpers_stop_with_each1">
|
||||
{{#with options}}
|
||||
{{> spacebars_test_helpers_stop_with_each3}}
|
||||
{{/with}}
|
||||
</template>
|
||||
|
||||
<template name="spacebars_test_helpers_stop_with_each2">
|
||||
{{#with options}}
|
||||
{{> spacebars_test_helpers_stop_with_each3}}
|
||||
{{/with}}
|
||||
</template>
|
||||
|
||||
<template name="spacebars_test_helpers_stop_with_each3">
|
||||
{{#each this}}
|
||||
{{/each}}
|
||||
</template>
|
||||
|
||||
<template name="spacebars_test_helpers_stop_if1">
|
||||
{{#if options}}
|
||||
one
|
||||
|
||||
@@ -1708,6 +1708,10 @@ Tinytest.add('spacebars - template - each stops without re-running helper', func
|
||||
runOneTwoTest(test, 'spacebars_test_helpers_stop_each');
|
||||
});
|
||||
|
||||
Tinytest.add('spacebars - template - each inside with stops without re-running helper', function (test) {
|
||||
runOneTwoTest(test, 'spacebars_test_helpers_stop_with_each');
|
||||
});
|
||||
|
||||
Tinytest.add('spacebars - template - if stops without re-running helper', function (test) {
|
||||
runOneTwoTest(test, 'spacebars_test_helpers_stop_if', ['a', 'b', 'a']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user