File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
test/unit/specs/mount/Wrapper Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { compileToFunctions } from 'vue-template-compiler'
2
2
import { mount } from '~vue-test-utils'
3
3
import Component from '~resources/components/component.vue'
4
4
import ComponentAsAClass from '~resources/components/component-as-a-class.vue'
5
+ import { vueVersion } from '~resources/test-utils'
5
6
6
7
describe ( 'html' , ( ) => {
7
8
it ( 'returns a VueWrappers HTML as a string' , ( ) => {
@@ -24,7 +25,10 @@ describe('html', () => {
24
25
expect ( wrapper . html ( ) ) . to . equal ( expectedHtml )
25
26
} )
26
27
27
- it ( 'class component' , ( ) => {
28
+ it ( 'handles class component' , ( ) => {
29
+ if ( vueVersion < 2.3 ) {
30
+ return
31
+ }
28
32
const wrapper = mount ( ComponentAsAClass )
29
33
expect ( wrapper . html ( ) ) . to . equal ( '<div></div>' )
30
34
} )
You can’t perform that action at this time.
0 commit comments