@@ -40,7 +40,7 @@ function shuffle(array: Array<any>) {
40
40
return array
41
41
}
42
42
43
- it ( 'should patch previously empty children' , ( ) => {
43
+ test ( 'should patch previously empty children' , ( ) => {
44
44
const root = nodeOps . createElement ( 'div' )
45
45
46
46
render ( h ( 'div' , [ ] ) , root )
@@ -50,7 +50,7 @@ it('should patch previously empty children', () => {
50
50
expect ( inner ( root ) ) . toBe ( '<div>hello</div>' )
51
51
} )
52
52
53
- it ( 'should patch previously null children' , ( ) => {
53
+ test ( 'should patch previously null children' , ( ) => {
54
54
const root = nodeOps . createElement ( 'div' )
55
55
56
56
render ( h ( 'div' ) , root )
@@ -60,6 +60,15 @@ it('should patch previously null children', () => {
60
60
expect ( inner ( root ) ) . toBe ( '<div>hello</div>' )
61
61
} )
62
62
63
+ test ( 'array children -> text children' , ( ) => {
64
+ const root = nodeOps . createElement ( 'div' )
65
+ render ( h ( 'div' , [ h ( 'div' ) ] ) , root )
66
+ expect ( inner ( root ) ) . toBe ( '<div><div></div></div>' )
67
+
68
+ render ( h ( 'div' , 'hello' ) , root )
69
+ expect ( inner ( root ) ) . toBe ( '<div>hello</div>' )
70
+ } )
71
+
63
72
describe ( 'renderer: keyed children' , ( ) => {
64
73
let root : TestElement
65
74
let elm : TestElement
0 commit comments