diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /spec/frontend/releases/components/asset_links_form_spec.js | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) | |
download | gitlab-ce-85dc423f7090da0a52c73eb66faf22ddb20efff9.tar.gz |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'spec/frontend/releases/components/asset_links_form_spec.js')
-rw-r--r-- | spec/frontend/releases/components/asset_links_form_spec.js | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/spec/frontend/releases/components/asset_links_form_spec.js b/spec/frontend/releases/components/asset_links_form_spec.js index 727d593d851..582c0b32716 100644 --- a/spec/frontend/releases/components/asset_links_form_spec.js +++ b/spec/frontend/releases/components/asset_links_form_spec.js @@ -115,14 +115,10 @@ describe('Release edit component', () => { const expectStoreMethodToBeCalled = () => { expect(actions.updateAssetLinkUrl).toHaveBeenCalledTimes(1); - expect(actions.updateAssetLinkUrl).toHaveBeenCalledWith( - expect.anything(), - { - linkIdToUpdate, - newUrl, - }, - undefined, - ); + expect(actions.updateAssetLinkUrl).toHaveBeenCalledWith(expect.anything(), { + linkIdToUpdate, + newUrl, + }); }; it('calls the "updateAssetLinkUrl" store method when text is entered into the "URL" input field', () => { @@ -177,14 +173,10 @@ describe('Release edit component', () => { const expectStoreMethodToBeCalled = () => { expect(actions.updateAssetLinkName).toHaveBeenCalledTimes(1); - expect(actions.updateAssetLinkName).toHaveBeenCalledWith( - expect.anything(), - { - linkIdToUpdate, - newName, - }, - undefined, - ); + expect(actions.updateAssetLinkName).toHaveBeenCalledWith(expect.anything(), { + linkIdToUpdate, + newName, + }); }; it('calls the "updateAssetLinkName" store method when text is entered into the "Link title" input field', () => { @@ -225,14 +217,10 @@ describe('Release edit component', () => { wrapper.find({ ref: 'typeSelect' }).vm.$emit('change', newType); expect(actions.updateAssetLinkType).toHaveBeenCalledTimes(1); - expect(actions.updateAssetLinkType).toHaveBeenCalledWith( - expect.anything(), - { - linkIdToUpdate, - newType, - }, - undefined, - ); + expect(actions.updateAssetLinkType).toHaveBeenCalledWith(expect.anything(), { + linkIdToUpdate, + newType, + }); }); it('selects the default asset type if no type was provided by the backend', () => { |