diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-16 21:08:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-16 21:08:34 +0300 |
commit | cc9ff71e31ecc954f819741ba1285b1b9adbf3b9 (patch) | |
tree | 5f1ff13cc95f2b1860419c45b8def31cde56d1f9 /spec/frontend/ci_secure_files | |
parent | f01d3c8c095e70981ffc1d20c050c153f3766421 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/ci_secure_files')
-rw-r--r-- | spec/frontend/ci_secure_files/components/secure_files_list_spec.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/spec/frontend/ci_secure_files/components/secure_files_list_spec.js b/spec/frontend/ci_secure_files/components/secure_files_list_spec.js index 637f4989f84..17b5fdc4dde 100644 --- a/spec/frontend/ci_secure_files/components/secure_files_list_spec.js +++ b/spec/frontend/ci_secure_files/components/secure_files_list_spec.js @@ -15,11 +15,6 @@ const dummyApiVersion = 'v3000'; const dummyProjectId = 1; const fileSizeLimit = 5; const dummyUrlRoot = '/gitlab'; -const dummyGon = { - api_version: dummyApiVersion, - relative_url_root: dummyUrlRoot, -}; -let originalGon; const expectedUrl = `${dummyUrlRoot}/api/${dummyApiVersion}/projects/${dummyProjectId}/secure_files`; describe('SecureFilesList', () => { @@ -28,15 +23,16 @@ describe('SecureFilesList', () => { let trackingSpy; beforeEach(() => { - originalGon = window.gon; trackingSpy = mockTracking(undefined, undefined, jest.spyOn); - window.gon = { ...dummyGon }; + window.gon = { + api_version: dummyApiVersion, + relative_url_root: dummyUrlRoot, + }; }); afterEach(() => { mock.restore(); unmockTracking(); - window.gon = originalGon; }); const createWrapper = (admin = true, props = {}) => { |