@@ -6,7 +6,7 @@ import { expect } from 'chai';
66describe ( 'vhtml' , ( ) => {
77 it ( 'should stringify html' , ( ) => {
88 let items = [ 'one' , 'two' , 'three' ] ;
9- expect (
9+ expect ( (
1010 < div class = "foo" >
1111 < h1 > Hi!</ h1 >
1212 < p > Here is a list of { items . length } items:</ p >
@@ -16,38 +16,38 @@ describe('vhtml', () => {
1616 ) ) }
1717 </ ul >
1818 </ div >
19- ) . to . equal (
19+ ) ( ) ) . to . equal (
2020 `<div class="foo"><h1>Hi!</h1><p>Here is a list of 3 items:</p><ul><li>one</li><li>two</li><li>three</li></ul></div>`
2121 ) ;
2222 } ) ;
2323
2424 it ( 'should sanitize children' , ( ) => {
25- expect (
25+ expect ( (
2626 < div >
2727 { `<strong>blocked</strong>` }
2828 < em > allowed</ em >
2929 </ div >
30- ) . to . equal (
30+ ) ( ) ) . to . equal (
3131 `<div><strong>blocked</strong><em>allowed</em></div>`
3232 ) ;
3333 } ) ;
3434
3535 it ( 'should sanitize attributes' , ( ) => {
36- expect (
36+ expect ( (
3737 < div onclick = { `&<>"'` } />
38- ) . to . equal (
38+ ) ( ) ) . to . equal (
3939 `<div onclick="&<>"'"></div>`
4040 ) ;
4141 } ) ;
4242
4343 it ( 'should flatten children' , ( ) => {
44- expect (
44+ expect ( (
4545 < div >
4646 { [ [ 'a' , 'b' ] ] }
4747 < c > d</ c >
4848 { [ 'e' , [ 'f' ] , [ [ 'g' ] ] ] }
4949 </ div >
50- ) . to . equal (
50+ ) ( ) ) . to . equal (
5151 `<div>ab<c>d</c>efg</div>`
5252 ) ;
5353 } ) ;
@@ -62,7 +62,7 @@ describe('vhtml', () => {
6262 </ li >
6363 ) ;
6464
65- expect (
65+ expect ( (
6666 < div class = "foo" >
6767 < h1 > Hi!</ h1 >
6868 < ul >
@@ -73,7 +73,7 @@ describe('vhtml', () => {
7373 ) ) }
7474 </ ul >
7575 </ div >
76- ) . to . equal (
76+ ) ( ) ) . to . equal (
7777 `<div class="foo"><h1>Hi!</h1><ul><li id="0"><h4>one</h4>This is item one!</li><li id="1"><h4>two</h4>This is item two!</li></ul></div>`
7878 ) ;
7979 } ) ;
@@ -87,7 +87,7 @@ describe('vhtml', () => {
8787 </ li >
8888 ) ;
8989
90- expect (
90+ expect ( (
9191 < div class = "foo" >
9292 < h1 > Hi!</ h1 >
9393 < ul >
@@ -98,7 +98,7 @@ describe('vhtml', () => {
9898 ) ) }
9999 </ ul >
100100 </ div >
101- ) . to . equal (
101+ ) ( ) ) . to . equal (
102102 `<div class="foo"><h1>Hi!</h1><ul><li><h4></h4></li><li><h4></h4></li></ul></div>`
103103 ) ;
104104 } ) ;
@@ -113,7 +113,7 @@ describe('vhtml', () => {
113113 </ li >
114114 ) ;
115115
116- expect (
116+ expect ( (
117117 < div class = "foo" >
118118 < h1 > Hi!</ h1 >
119119 < ul >
@@ -124,13 +124,13 @@ describe('vhtml', () => {
124124 ) ) }
125125 </ ul >
126126 </ div >
127- ) . to . equal (
127+ ) ( ) ) . to . equal (
128128 `<div class="foo"><h1>Hi!</h1><ul><li><h4></h4>This is item one!</li><li><h4></h4>This is item two!</li></ul></div>`
129129 ) ;
130130 } ) ;
131131
132132 it ( 'should support empty (void) tags' , ( ) => {
133- expect (
133+ expect ( (
134134 < div >
135135 < area />
136136 < base />
@@ -153,15 +153,15 @@ describe('vhtml', () => {
153153 < span />
154154 < p />
155155 </ div >
156- ) . to . equal (
156+ ) ( ) ) . to . equal (
157157 `<div><area><base><br><col><command><embed><hr><img><input><keygen><link><meta><param><source><track><wbr><div></div><span></span><p></p></div>`
158158 ) ;
159159 } ) ;
160160
161161 it ( 'should handle className as class' , ( ) => {
162- expect (
162+ expect ( (
163163 < div className = "my-class" />
164- ) . to . equal (
164+ ) ( ) ) . to . equal (
165165 '<div class="my-class"></div>'
166166 ) ;
167167 } ) ;
0 commit comments