File tree 1 file changed +7
-7
lines changed
packages/runtime-dom/__tests__/modules 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -120,24 +120,24 @@ describe('class', () => {
120
120
return ( ) => h ( child2 , { class : [ 'a' , parentClass . value ] } )
121
121
}
122
122
}
123
- const aaa = h ( parent )
124
- const bbb = h ( parent2 )
125
- console . log ( aaa , bbb )
123
+
124
+ render ( h ( parent2 ) , root )
125
+ expect ( root . children [ 0 ] . className ) . toBe ( 'c d a b' )
126
126
127
127
render ( h ( parent ) , root )
128
- expect ( root . children [ 0 ] . className ) . toBe ( 'c a d b' )
128
+ expect ( root . children [ 0 ] . className ) . toBe ( 'c d a b' )
129
129
130
130
parentClass . value = 'e'
131
131
render ( h ( parent ) , root )
132
- expect ( root . children [ 0 ] . className ) . toBe ( 'c a d e' )
132
+ expect ( root . children [ 0 ] . className ) . toBe ( 'c d a e' )
133
133
134
134
parentClass . value = 'f'
135
135
render ( h ( parent ) , root )
136
- expect ( root . children [ 0 ] . className ) . toBe ( 'c a f e' )
136
+ expect ( root . children [ 0 ] . className ) . toBe ( 'c f a e' )
137
137
138
138
parentClass . value = { foo : true }
139
139
childClass . value = [ 'bar' , 'baz' ]
140
- expect ( root . children [ 0 ] . className ) . toBe ( 'c a bar baz foo' )
140
+ expect ( root . children [ 0 ] . className ) . toBe ( 'c bar baz a foo' )
141
141
} )
142
142
143
143
test ( 'class merge between multiple nested components sharing same element' , ( ) => {
You can’t perform that action at this time.
0 commit comments