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'
22import { mount } from '~vue-test-utils'
33import Component from '~resources/components/component.vue'
44import ComponentAsAClass from '~resources/components/component-as-a-class.vue'
5+ import { vueVersion } from '~resources/test-utils'
56
67describe ( 'html' , ( ) => {
78 it ( 'returns a VueWrappers HTML as a string' , ( ) => {
@@ -24,7 +25,10 @@ describe('html', () => {
2425 expect ( wrapper . html ( ) ) . to . equal ( expectedHtml )
2526 } )
2627
27- it ( 'class component' , ( ) => {
28+ it ( 'handles class component' , ( ) => {
29+ if ( vueVersion < 2.3 ) {
30+ return
31+ }
2832 const wrapper = mount ( ComponentAsAClass )
2933 expect ( wrapper . html ( ) ) . to . equal ( '<div></div>' )
3034 } )
You can’t perform that action at this time.
0 commit comments