Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 8, 2018
1 parent d25cb29 commit 527afba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/templatizer-elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@
});
var parent = Polymer.dom(this).parentNode;
Polymer.dom(parent).appendChild(this.instance.root);
// Ensure templatizer class does not leak reference to dataHost
assert.notOk(this.ctor.prototype._template.dataHost, 'templatizer class should not leak reference to dataHost');
}
});

Expand Down Expand Up @@ -196,6 +198,8 @@
});
var parent = Polymer.dom(this).parentNode;
Polymer.dom(parent).appendChild(this.instance.root);
// Ensure templatizer class does not leak reference to dataHost
assert.notOk(this.ctor.prototype._template.dataHost, 'templatizer class should not leak reference to dataHost');
}
});

Expand Down

0 comments on commit 527afba

Please sign in to comment.