Skip to content

Commit

Permalink
Update Toolbar test to use the created apolloClient instead of vue-ap…
Browse files Browse the repository at this point in the history
…ollo instance
  • Loading branch information
Bruno P. Kinoshita committed Dec 19, 2019
1 parent d0cac5f commit e318e3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/components/cylc/toolbar.vue.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Toolbar component', () => {
store
})

wrapper.vm.$apollo = {
wrapper.vm.$apolloClient = {
mutate: function () {
return new Promise((resolve) => {
return resolve(true)
Expand All @@ -68,7 +68,7 @@ describe('Toolbar component', () => {
wrapper.vm.$data.responsive = true
await Vue.nextTick()

wrapper.vm.$apollo = {
wrapper.vm.$apolloClient = {
mutate: function () {
return new Promise((resolve) => {
if (store.state.workflows.workflows[0].status === TaskState.HELD.name.toLowerCase()) {
Expand Down

0 comments on commit e318e3a

Please sign in to comment.