Skip to content

Commit 9cccbae

Browse files
committed
test: skip tests on less than 2.3
1 parent e3f52d7 commit 9cccbae

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

test/specs/config.spec.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { describeWithShallowAndMount, itDoNotRunIf } from '~resources/utils'
1+
import {
2+
describeWithShallowAndMount,
3+
itDoNotRunIf,
4+
itSkipIf,
5+
vueVersion
6+
} from '~resources/utils'
27
import { config, TransitionStub, TransitionGroupStub, createLocalVue } from '~vue/test-utils'
38
import Vue from 'vue'
49

@@ -130,7 +135,9 @@ describeWithShallowAndMount('config', (mountingMethod) => {
130135
expect(wrapper.contains(TransitionStub)).to.equal(false)
131136
})
132137

133-
it('does not log when component is extended if logModifiedComponents is false', () => {
138+
itSkipIf(
139+
vueVersion < 2.3,
140+
'does not log when component is extended if logModifiedComponents is false', () => {
134141
const ChildComponent = Vue.extend({
135142
template: '<span />'
136143
})

test/specs/mounting-options/localVue.spec.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import Vue from 'vue'
22
import {
33
describeWithMountingMethods,
44
itSkipIf,
5-
isRunningPhantomJS
5+
isRunningPhantomJS,
6+
vueVersion
67
} from '~resources/utils'
78
import { createLocalVue } from '~vue/test-utils'
89
import Vuex from 'vuex'
@@ -33,7 +34,9 @@ describeWithMountingMethods('options.localVue', (mountingMethod) => {
3334
expect(freshHTML).to.not.contain('some value')
3435
})
3536

36-
it('works correctly with extended children', () => {
37+
itSkipIf(
38+
vueVersion < 2.3,
39+
'works correctly with extended children', () => {
3740
const localVue = createLocalVue()
3841
localVue.use(Vuex)
3942
const store = new Vuex.Store({

0 commit comments

Comments
 (0)