diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-29 15:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-29 15:08:48 +0300 |
commit | e5f2a04e9d54615fded2ca05d0d5eef464795a8f (patch) | |
tree | 5412fccdb0a63b449fba4d7998eaa05ca70091ba /spec/frontend/static_site_editor | |
parent | ad2789aeba21edaadcbdc06523462e6fd87d4ba1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/static_site_editor')
-rw-r--r-- | spec/frontend/static_site_editor/services/submit_content_changes_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/static_site_editor/services/submit_content_changes_spec.js b/spec/frontend/static_site_editor/services/submit_content_changes_spec.js index d9bceb76a37..757611166d7 100644 --- a/spec/frontend/static_site_editor/services/submit_content_changes_spec.js +++ b/spec/frontend/static_site_editor/services/submit_content_changes_spec.js @@ -8,8 +8,8 @@ import { SUBMIT_CHANGES_MERGE_REQUEST_ERROR, TRACKING_ACTION_CREATE_COMMIT, TRACKING_ACTION_CREATE_MERGE_REQUEST, - USAGE_PING_TRACKING_ACTION_CREATE_COMMIT, - USAGE_PING_TRACKING_ACTION_CREATE_MERGE_REQUEST, + SERVICE_PING_TRACKING_ACTION_CREATE_COMMIT, + SERVICE_PING_TRACKING_ACTION_CREATE_MERGE_REQUEST, DEFAULT_FORMATTING_CHANGES_COMMIT_MESSAGE, DEFAULT_FORMATTING_CHANGES_COMMIT_DESCRIPTION, } from '~/static_site_editor/constants'; @@ -237,7 +237,7 @@ describe('submitContentChanges', () => { }); }); - describe('sends the correct Usage Ping tracking event', () => { + describe('sends the correct Service Ping tracking event', () => { beforeEach(() => { jest.spyOn(Api, 'trackRedisCounterEvent').mockResolvedValue({ data: '' }); }); @@ -245,7 +245,7 @@ describe('submitContentChanges', () => { it('for commiting changes', () => { return submitContentChanges(buildPayload()).then(() => { expect(Api.trackRedisCounterEvent).toHaveBeenCalledWith( - USAGE_PING_TRACKING_ACTION_CREATE_COMMIT, + SERVICE_PING_TRACKING_ACTION_CREATE_COMMIT, ); }); }); @@ -253,7 +253,7 @@ describe('submitContentChanges', () => { it('for creating a merge request', () => { return submitContentChanges(buildPayload()).then(() => { expect(Api.trackRedisCounterEvent).toHaveBeenCalledWith( - USAGE_PING_TRACKING_ACTION_CREATE_MERGE_REQUEST, + SERVICE_PING_TRACKING_ACTION_CREATE_MERGE_REQUEST, ); }); }); |