diff --git a/test/types.js b/test/types.js index 13f6c21..af1e663 100644 --- a/test/types.js +++ b/test/types.js @@ -15,9 +15,15 @@ test('null value (empty)', function (t) { t.end() }) +test('string value (empty)', function (t) { + var tree = hx`
${''}
` + t.equal(vdom.create(tree).toString(), '
') + t.end() +}) + test('boolean value', function (t) { var tree = hx`
${false}
` - t.equal(vdom.create(tree).toString(), '
false
') + t.equal(vdom.create(tree).toString(), '
') t.end() }) @@ -26,3 +32,9 @@ test('numeric value', function (t) { t.equal(vdom.create(tree).toString(), '
555
') t.end() }) + +test('numeric value (zero)', function (t) { + var tree = hx`
${0}
` + t.equal(vdom.create(tree).toString(), '
0
') + t.end() +})