diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 06:07:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 06:07:38 +0300 |
commit | 0cee6f1577cd31cae7dc0e82f65dcad462a4d18a (patch) | |
tree | 180a48cc0b5b15e6f2ac489a6c828ebab591d4cf /spec/frontend/__helpers__/test_apollo_link.js | |
parent | dcd01617a750c41fd082cc3383fc7ad2f2afd026 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/__helpers__/test_apollo_link.js')
-rw-r--r-- | spec/frontend/__helpers__/test_apollo_link.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/__helpers__/test_apollo_link.js b/spec/frontend/__helpers__/test_apollo_link.js index eab0c2de212..d9e7f5fc348 100644 --- a/spec/frontend/__helpers__/test_apollo_link.js +++ b/spec/frontend/__helpers__/test_apollo_link.js @@ -18,7 +18,7 @@ const FOO_QUERY = gql` * * @returns Promise resolving to the resulting operation after running the subjectLink */ -export const testApolloLink = (subjectLink, options = {}) => +export const testApolloLink = (subjectLink, options = {}, query = FOO_QUERY) => new Promise((resolve) => { const { context = {} } = options; @@ -38,6 +38,6 @@ export const testApolloLink = (subjectLink, options = {}) => // Trigger a query so the ApolloLink chain will be executed. client.query({ context, - query: FOO_QUERY, + query, }); }); |