Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-19 06:07:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-19 06:07:38 +0300
commit0cee6f1577cd31cae7dc0e82f65dcad462a4d18a (patch)
tree180a48cc0b5b15e6f2ac489a6c828ebab591d4cf /spec/frontend/__helpers__/test_apollo_link.js
parentdcd01617a750c41fd082cc3383fc7ad2f2afd026 (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.js4
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,
});
});