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', () => {
161
161
}
162
162
}
163
163
} ) . $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' )
165
166
vm . $children [ 0 ] . ok = false
166
167
waitForUpdate ( ( ) => {
167
168
// attrs / class modules should not attempt to patch the comment node
168
169
expect ( vm . $el . innerHTML ) . toBe ( '<!---->' )
169
170
vm . $children [ 0 ] . ok = true
170
171
} ) . 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' )
172
174
} ) . then ( done )
173
175
} )
174
176
} )
You can’t perform that action at this time.
0 commit comments