mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Test that template in DOM before rendered callback fires
This commit is contained in:
@@ -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:
|
||||
//
|
||||
// ```
|
||||
|
||||
Reference in New Issue
Block a user