@@ -135,24 +135,26 @@ describeRunIf(process.env.TEST_ENV !== 'node', 'mount', () => {
135
135
expect ( wrapper . html ( ) ) . to . equal ( `<div>foo</div>` )
136
136
} )
137
137
138
- it ( 'overrides methods' , ( ) => {
139
- const stub = sinon . stub ( )
140
- const TestComponent = Vue . extend ( {
141
- template : '<div />' ,
142
- methods : {
143
- callStub ( ) {
144
- stub ( )
138
+ itDoNotRunIf (
139
+ vueVersion < 2.3 ,
140
+ 'overrides methods' , ( ) => {
141
+ const stub = sinon . stub ( )
142
+ const TestComponent = Vue . extend ( {
143
+ template : '<div />' ,
144
+ methods : {
145
+ callStub ( ) {
146
+ stub ( )
147
+ }
145
148
}
146
- }
147
- } )
148
- mount ( TestComponent , {
149
- methods : {
150
- callStub ( ) { }
151
- }
152
- } ) . vm . callStub ( )
149
+ } )
150
+ mount ( TestComponent , {
151
+ methods : {
152
+ callStub ( ) { }
153
+ }
154
+ } ) . vm . callStub ( )
153
155
154
- expect ( stub ) . not . called
155
- } )
156
+ expect ( stub ) . not . called
157
+ } )
156
158
157
159
it . skip ( 'overrides component prototype' , ( ) => {
158
160
const mountSpy = sinon . spy ( )
@@ -268,22 +270,24 @@ describeRunIf(process.env.TEST_ENV !== 'node', 'mount', () => {
268
270
expect ( wrapper . vm . $options . listeners ) . to . equal ( undefined )
269
271
} )
270
272
271
- it ( 'injects store correctly' , ( ) => {
272
- const localVue = createLocalVue ( )
273
- localVue . use ( Vuex )
274
- const store = new Vuex . Store ( )
275
- const wrapper = mount ( ComponentAsAClass , {
276
- store,
277
- localVue
273
+ itDoNotRunIf (
274
+ vueVersion < 2.3 ,
275
+ 'injects store correctly' , ( ) => {
276
+ const localVue = createLocalVue ( )
277
+ localVue . use ( Vuex )
278
+ const store = new Vuex . Store ( )
279
+ const wrapper = mount ( ComponentAsAClass , {
280
+ store,
281
+ localVue
282
+ } )
283
+ wrapper . vm . getters
284
+ mount (
285
+ {
286
+ template : '<div>{{$store.getters}}</div>'
287
+ } ,
288
+ { store, localVue }
289
+ )
278
290
} )
279
- wrapper . vm . getters
280
- mount (
281
- {
282
- template : '<div>{{$store.getters}}</div>'
283
- } ,
284
- { store, localVue }
285
- )
286
- } )
287
291
288
292
it ( 'propagates errors when they are thrown' , ( ) => {
289
293
const TestComponent = {
0 commit comments