Skip to content

Commit 20913a8

Browse files
committed
Add test for boolean-like values
1 parent ccbc7d2 commit 20913a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test.js

+11
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,17 @@ test('hastscript', function(t) {
506506
'should not cast invalid known `boolean` values'
507507
)
508508

509+
sst.deepEqual(
510+
h('img', {title: 'title'}),
511+
{
512+
type: 'element',
513+
tagName: 'img',
514+
properties: {title: 'title'},
515+
children: []
516+
},
517+
'should not cast unknown boolean-like values'
518+
)
519+
509520
sst.end()
510521
})
511522

0 commit comments

Comments
 (0)