Skip to content

Commit 66dcac5

Browse files
committed
test: skip in Vue < 2.3
1 parent ff1d4aa commit 66dcac5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/specs/wrapper/emitted.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createLocalVue } from '~vue/test-utils'
2-
import { describeWithShallowAndMount } from '~resources/utils'
2+
import { describeWithShallowAndMount, vueVersion } from '~resources/utils'
33
import { itDoNotRunIf } from 'conditional-specs'
44
import Vue from 'vue'
55

@@ -106,7 +106,7 @@ describeWithShallowAndMount('emitted', mountingMethod => {
106106
})
107107

108108
itDoNotRunIf(
109-
mountingMethod.name === 'shallowMount',
109+
mountingMethod.name === 'shallowMount' || vueVersion < 2.3,
110110
'works correctly on nested extended components', () => {
111111
const GrandChildComponent = Vue.extend({
112112
template: '<div />',
@@ -132,7 +132,7 @@ describeWithShallowAndMount('emitted', mountingMethod => {
132132
})
133133

134134
itDoNotRunIf(
135-
mountingMethod.name === 'shallowMount',
135+
mountingMethod.name === 'shallowMount' || vueVersion < 2.3,
136136
'works correctly on nested extended components inside extended component', () => {
137137
const GrandChildComponent = Vue.extend({
138138
template: '<div />',

0 commit comments

Comments
 (0)