diff --git a/packages/spacebars-tests/template_tests.js b/packages/spacebars-tests/template_tests.js index 706b6a92c5..ec0bd8f157 100644 --- a/packages/spacebars-tests/template_tests.js +++ b/packages/spacebars-tests/template_tests.js @@ -780,6 +780,18 @@ testAsyncMulti('spacebars - template - defer in rendered callbacks', [function ( coll.insert({}); }]); +testAsyncMulti('spacebars - template - rendered template is DOM in rendered callbacks', [ + function (test, expect) { + var tmpl = Template.spacebars_template_test_aaa; + tmpl.rendered = expect(function () { + console.log('in rendered'); + test.equal(trim(stripComments(div.innerHTML)), "aaa"); + }); + var div = renderToDiv(tmpl); + Deps.flush(); + } +]); + // Test that in: // // ```