Skip to content

Commit

Permalink
change shallow => shallowMount in vue tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rkcf committed Jun 9, 2018
1 parent 00ec2c4 commit 02806dd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions frontend/test/unit/specs/App.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vuex from 'vuex'
import { shallow, createLocalVue } from '@vue/test-utils'
import { shallowMount, createLocalVue } from '@vue/test-utils'
import App from '@/App'
import sessionStorage from 'jest-localstorage-mock'

Expand Down Expand Up @@ -34,7 +34,7 @@ describe('App.vue', () => {
getters
})

wrapper = shallow(App,
wrapper = shallowMount(App,
{ store,
localVue
})
Expand Down
4 changes: 2 additions & 2 deletions frontend/test/unit/specs/CardContainer.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vuex from 'vuex'
import { shallow, createLocalVue } from '@vue/test-utils'
import { shallowMount, createLocalVue } from '@vue/test-utils'
import CardContainer from '@/components/CardContainer'

const localVue = createLocalVue()
Expand Down Expand Up @@ -28,7 +28,7 @@ describe('CardContainer.vue', () => {
getters
})

wrapper = shallow(CardContainer,
wrapper = shallowMount(CardContainer,
{ store,
localVue
})
Expand Down
4 changes: 2 additions & 2 deletions frontend/test/unit/specs/MainMenu.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vuex from 'vuex'
import { shallow, createLocalVue } from '@vue/test-utils'
import { shallowMount, createLocalVue } from '@vue/test-utils'
import MainMenu from '@/components/MainMenu'

const localVue = createLocalVue()
Expand All @@ -19,7 +19,7 @@ describe('MainMenu.vue', () => {

store = new Vuex.Store({ actions })

wrapper = shallow(MainMenu,
wrapper = shallowMount(MainMenu,
{ store,
localVue
})
Expand Down
4 changes: 2 additions & 2 deletions frontend/test/unit/specs/ModalContainer.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { shallow, createLocalVue } from '@vue/test-utils'
import { shallowMount, createLocalVue } from '@vue/test-utils'
import ModalContainer from '@/components/ModalContainer'

const localVue = createLocalVue()
Expand All @@ -7,7 +7,7 @@ describe('ModalContainer.vue', () => {
let wrapper

beforeEach(() => {
wrapper = shallow(ModalContainer, { localVue })
wrapper = shallowMount(ModalContainer, { localVue })
})

describe('methods', () => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/test/unit/specs/TaskCard.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vuex from 'vuex'
import { shallow, createLocalVue } from '@vue/test-utils'
import { shallowMount, createLocalVue } from '@vue/test-utils'
import TaskCard from '@/components/TaskCard'

const localVue = createLocalVue()
Expand Down Expand Up @@ -34,7 +34,7 @@ describe('TaskCard.vue', () => {
mutations
})

wrapper = shallow(TaskCard,
wrapper = shallowMount(TaskCard,
{ propsData: {task: store.state.tasks[0]},
store,
localVue
Expand Down

0 comments on commit 02806dd

Please sign in to comment.