File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
test/unit/features/directives Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,16 @@ describe('Directive v-if', () => {
161161 }
162162 }
163163 } ) . $mount ( )
164- expect ( vm . $el . innerHTML ) . toBe ( '<div id="ok" class="inner test">test</div>' )
164+ expect ( vm . $el . children [ 0 ] . id ) . toBe ( 'ok' )
165+ expect ( vm . $el . children [ 0 ] . className ) . toBe ( 'inner test' )
165166 vm . $children [ 0 ] . ok = false
166167 waitForUpdate ( ( ) => {
167168 // attrs / class modules should not attempt to patch the comment node
168169 expect ( vm . $el . innerHTML ) . toBe ( '<!---->' )
169170 vm . $children [ 0 ] . ok = true
170171 } ) . then ( ( ) => {
171- expect ( vm . $el . innerHTML ) . toBe ( '<div id="ok" class="inner test">test</div>' )
172+ expect ( vm . $el . children [ 0 ] . id ) . toBe ( 'ok' )
173+ expect ( vm . $el . children [ 0 ] . className ) . toBe ( 'inner test' )
172174 } ) . then ( done )
173175 } )
174176} )
You can’t perform that action at this time.
0 commit comments