File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,15 @@ test('null value (empty)', function (t) {
15
15
t . end ( )
16
16
} )
17
17
18
+ test ( 'string value (empty)' , function ( t ) {
19
+ var tree = hx `<div>${ '' } </div>`
20
+ t . equal ( vdom . create ( tree ) . toString ( ) , '<div></div>' )
21
+ t . end ( )
22
+ } )
23
+
18
24
test ( 'boolean value' , function ( t ) {
19
25
var tree = hx `<div>${ false } </div>`
20
- t . equal ( vdom . create ( tree ) . toString ( ) , '<div>false </div>' )
26
+ t . equal ( vdom . create ( tree ) . toString ( ) , '<div></div>' )
21
27
t . end ( )
22
28
} )
23
29
@@ -26,3 +32,9 @@ test('numeric value', function (t) {
26
32
t . equal ( vdom . create ( tree ) . toString ( ) , '<div>555</div>' )
27
33
t . end ( )
28
34
} )
35
+
36
+ test ( 'numeric value (zero)' , function ( t ) {
37
+ var tree = hx `<div>${ 0 } </div>`
38
+ t . equal ( vdom . create ( tree ) . toString ( ) , '<div>0</div>' )
39
+ t . end ( )
40
+ } )
You can’t perform that action at this time.
0 commit comments