diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-27 03:06:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-27 03:06:23 +0300 |
commit | bd8a202da68db8c61150d52e246997f04c329110 (patch) | |
tree | 27231f7ecf92696b90712510ea408fb7d1b6366b /spec/javascripts/vue_shared | |
parent | 59a349817c0869e8e0d750884b34256ca4faefca (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts/vue_shared')
-rw-r--r-- | spec/javascripts/vue_shared/components/pagination/graphql_pagination_spec.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/javascripts/vue_shared/components/pagination/graphql_pagination_spec.js b/spec/javascripts/vue_shared/components/pagination/graphql_pagination_spec.js index 7445da6cdee..204c0decfd8 100644 --- a/spec/javascripts/vue_shared/components/pagination/graphql_pagination_spec.js +++ b/spec/javascripts/vue_shared/components/pagination/graphql_pagination_spec.js @@ -1,14 +1,18 @@ -import { shallowMount } from '@vue/test-utils'; +import { shallowMount, createLocalVue } from '@vue/test-utils'; import GraphqlPagination from '~/vue_shared/components/pagination/graphql_pagination.vue'; +const localVue = createLocalVue(); + describe('Graphql Pagination component', () => { let wrapper; function factory({ hasNextPage = true, hasPreviousPage = true }) { - wrapper = shallowMount(GraphqlPagination, { + wrapper = shallowMount(localVue.extend(GraphqlPagination), { propsData: { hasNextPage, hasPreviousPage, }, + sync: false, + localVue, }); } |