-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
renderToDiv = (comp) -> | ||
div = document.createElement("DIV") | ||
UI.materialize comp, div | ||
div | ||
|
||
Tinytest.add "Accounts Entry - {{accountButtons}} helper", (test) -> | ||
html = OnscreenDiv(Meteor.render(Template.test_helper_account_buttons)) | ||
test.notEqual html.rawHtml().indexOf("Sign In"), -1, "Account Buttons helper didn't render a sign in link." | ||
test.notEqual html.rawHtml().indexOf("Sign Up"), -1, "Account Buttons helper didn't render a sign up link." | ||
div = renderToDiv(Template.test_helper_account_buttons) | ||
html = canonicalizeHtml(div.innerHTML) | ||
debugger | ||
test.notEqual html.indexOf("Sign In"), -1, "Account Buttons helper didn't render a sign in link." | ||
test.notEqual html.indexOf("Sign Up"), -1, "Account Buttons helper didn't render a sign up link." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
</template> | ||
|
||
<template name="test_helper_account_buttons"> | ||
{{accountButtons}} | ||
{{> accountButtons}} | ||
</template> |