Skip to content

Commit

Permalink
Tests for quote removal on attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristofer Baxter committed Dec 7, 2018
1 parent 2ecf7a0 commit c262f65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -17,6 +17,8 @@
console.log(html`html usage`);
console.log(html`html usage
multiline`);
console.log(html`<p active="true">Attribute Quote Removal</p>`);
console.log(html`<p data-order-state="new 'thing'">Impossible to Remove Quotes</p>`);
console.log(html`<p>
<span>html usage</span>
<span>more spans</span>
Expand Down Expand Up @@ -50,6 +52,8 @@ console.log(html`<p>
console.log(htmlFor(element)`html usage`);
console.log(htmlFor(element)`html usage
multiline`);
console.log(htmlFor(element)`<p active="true">Attribute Quote Removal</p>`);
console.log(htmlFor(element)`<p data-order-state="new 'thing'">Impossible to Remove Quotes</p>`);
console.log(htmlFor(element)`<p>
<span>html usage</span>
<span>more spans</span>
Expand Down
Expand Up @@ -15,6 +15,8 @@
*/
console.log(html(["html usage"]));
console.log(html(["html usage multiline"]));
console.log(html(["<p active=true>Attribute Quote Removal</p>"]));
console.log(html(["<p data-order-state=\"new 'thing'\">Impossible to Remove Quotes</p>"]));
console.log(html(["<p><span>html usage</span> <span>more spans</span></p>"]));
console.log(html(["<p><span>html usage</span> <span>whitespace before entry tag</span></p>"]));
console.log(html(["<p><span>html usage</span> <span>whitespace after entry tag</span></p>"]));
Expand All @@ -24,6 +26,8 @@ console.log(html(["<p><span>html usage</span> <span>comment after entry tag</spa
console.log(html(["<p><span>html usage</span> <span>with comment sibling</span></p>"]));
console.log(htmlFor(element)(["html usage"]));
console.log(htmlFor(element)(["html usage multiline"]));
console.log(htmlFor(element)(["<p active=true>Attribute Quote Removal</p>"]));
console.log(htmlFor(element)(["<p data-order-state=\"new 'thing'\">Impossible to Remove Quotes</p>"]));
console.log(htmlFor(element)(["<p><span>html usage</span> <span>more spans</span></p>"]));
console.log(htmlFor(element)(["<p><span>html usage</span> <span>whitespace before entry tag</span></p>"]));
console.log(htmlFor(element)(["<p><span>html usage</span> <span>whitespace after entry tag</span></p>"]));
Expand Down

0 comments on commit c262f65

Please sign in to comment.