diff options
Diffstat (limited to 'spec/frontend/ci/ci_variable_list/mocks.js')
-rw-r--r-- | spec/frontend/ci/ci_variable_list/mocks.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/frontend/ci/ci_variable_list/mocks.js b/spec/frontend/ci/ci_variable_list/mocks.js index 4da4f53f69f..f9450803308 100644 --- a/spec/frontend/ci/ci_variable_list/mocks.js +++ b/spec/frontend/ci/ci_variable_list/mocks.js @@ -56,6 +56,11 @@ export const mockVariablesWithScopes = (kind) => return { ...variable, environmentScope: '*' }; }); +export const mockVariablesWithUniqueScopes = (kind) => + mockVariables(kind).map((variable) => { + return { ...variable, environmentScope: variable.value }; + }); + const createDefaultVars = ({ withScope = true, kind } = {}) => { let base = mockVariables(kind); |