11import Vuex from 'vuex'
2- import { shallow , createLocalVue } from '../'
2+ import { shallowMount , createLocalVue } from '../'
33import { normalOptions , functionalOptions , Normal , ClassComponent } from './resources'
44
55/**
66 * Should create wrapper vm based on (function) component options or constructors
77 * The users can specify component type via the type parameter
88 */
9- const normalWrapper = shallow ( normalOptions )
9+ const normalWrapper = shallowMount ( normalOptions )
1010const normalFoo : string = normalWrapper . vm . foo
1111
12- const classWrapper = shallow ( ClassComponent )
12+ const classWrapper = shallowMount ( ClassComponent )
1313const classFoo : string = classWrapper . vm . bar
1414
15- const functinalWrapper = shallow ( functionalOptions )
15+ const functinalWrapper = shallowMount ( functionalOptions )
1616
1717/**
18- * Test for shallow options
18+ * Test for shallowMount options
1919 */
2020const localVue = createLocalVue ( )
2121localVue . use ( Vuex )
2222
2323const store = new Vuex . Store ( { } )
2424
25- shallow ( ClassComponent , {
25+ shallowMount ( ClassComponent , {
2626 attachToDocument : true ,
2727 localVue,
2828 mocks : {
@@ -41,17 +41,17 @@ shallow(ClassComponent, {
4141 }
4242} )
4343
44- shallow ( functionalOptions , {
44+ shallowMount ( functionalOptions , {
4545 context : {
4646 props : { foo : 'test' }
4747 } ,
4848 stubs : [ 'child' ]
4949} )
5050
5151/**
52- * ShallowOptions should receive Vue's component options
52+ * ShallowMountOptions should receive Vue's component options
5353 */
54- shallow ( ClassComponent , {
54+ shallowMount ( ClassComponent , {
5555 propsData : {
5656 test : 'test'
5757 } ,
0 commit comments