1
1
import Vue from 'vue'
2
2
import Vuex from 'vuex'
3
3
import VueRouter from 'vue-router'
4
- import createLocalVue from 'packages/shared/create-local-vue'
4
+ import _createLocalVue from 'packages/shared/create-local-vue'
5
5
import Component from '~resources/components/component.vue'
6
6
import ComponentWithVuex from '~resources/components/component-with-vuex.vue'
7
7
import ComponentWithRouter from '~resources/components/component-with-router.vue'
@@ -10,7 +10,7 @@ import { itDoNotRunIf } from 'conditional-specs'
10
10
11
11
describeWithShallowAndMount ( 'createLocalVue' , mountingMethod => {
12
12
it ( 'installs Vuex without polluting global Vue' , ( ) => {
13
- const localVue = createLocalVue ( )
13
+ const localVue = _createLocalVue ( )
14
14
localVue . use ( Vuex )
15
15
const store = new Vuex . Store ( {
16
16
state : {
@@ -27,7 +27,7 @@ describeWithShallowAndMount('createLocalVue', mountingMethod => {
27
27
} )
28
28
29
29
it ( 'Vuex should work properly with local Vue' , async ( ) => {
30
- const localVue = createLocalVue ( )
30
+ const localVue = _createLocalVue ( )
31
31
localVue . use ( Vuex )
32
32
const store = new Vuex . Store ( {
33
33
state : {
@@ -53,7 +53,7 @@ describeWithShallowAndMount('createLocalVue', mountingMethod => {
53
53
} )
54
54
55
55
it ( 'installs Router without polluting global Vue' , ( ) => {
56
- const localVue = createLocalVue ( )
56
+ const localVue = _createLocalVue ( )
57
57
localVue . use ( VueRouter )
58
58
const routes = [ { path : '/foo' , component : Component } ]
59
59
const router = new VueRouter ( {
@@ -69,7 +69,7 @@ describeWithShallowAndMount('createLocalVue', mountingMethod => {
69
69
mountingMethod . name === 'shallowMount' ,
70
70
'Router should work properly with local Vue' ,
71
71
( ) => {
72
- const localVue = createLocalVue ( )
72
+ const localVue = _createLocalVue ( )
73
73
localVue . use ( VueRouter )
74
74
const routes = [
75
75
{
@@ -102,7 +102,7 @@ describeWithShallowAndMount('createLocalVue', mountingMethod => {
102
102
)
103
103
104
104
it ( 'use can take additional arguments' , ( ) => {
105
- const localVue = createLocalVue ( )
105
+ const localVue = _createLocalVue ( )
106
106
const pluginOptions = { foo : 'bar' }
107
107
const plugin = {
108
108
install : function ( _Vue , options ) {
@@ -124,7 +124,7 @@ describeWithShallowAndMount('createLocalVue', mountingMethod => {
124
124
}
125
125
126
126
Vue . use ( Plugin )
127
- const localVue = createLocalVue ( )
127
+ const localVue = _createLocalVue ( )
128
128
localVue . use ( Plugin )
129
129
130
130
if ( localVue . _installedPlugins ) {
0 commit comments