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-12-19 21:13:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-19 21:13:09 +0300
commit39406b41a6f3178feea7153bb2ce7343bc193e93 (patch)
tree14a3c75872a5fa82da4be58307e2a902250ce732 /spec/frontend
parenta4bc9e75d8078f37e9c196333a3a1484e97d6a71 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend')
-rw-r--r--spec/frontend/lib/utils/text_utility_spec.js8
-rw-r--r--spec/frontend/work_items/mock_data.js8
2 files changed, 16 insertions, 0 deletions
diff --git a/spec/frontend/lib/utils/text_utility_spec.js b/spec/frontend/lib/utils/text_utility_spec.js
index 6821ed56857..692beac7ed3 100644
--- a/spec/frontend/lib/utils/text_utility_spec.js
+++ b/spec/frontend/lib/utils/text_utility_spec.js
@@ -42,6 +42,14 @@ describe('text_utility', () => {
it('returns string with first letter capitalized', () => {
expect(textUtils.capitalizeFirstCharacter('gitlab')).toEqual('Gitlab');
});
+
+ it('returns empty string when given string is empty', () => {
+ expect(textUtils.capitalizeFirstCharacter('')).toEqual('');
+ });
+
+ it('returns empty string when given string is invalid', () => {
+ expect(textUtils.capitalizeFirstCharacter(undefined)).toEqual('');
+ });
});
describe('slugify', () => {
diff --git a/spec/frontend/work_items/mock_data.js b/spec/frontend/work_items/mock_data.js
index 9e39380750f..ce1919fb6d0 100644
--- a/spec/frontend/work_items/mock_data.js
+++ b/spec/frontend/work_items/mock_data.js
@@ -229,6 +229,7 @@ export const updateWorkItemMutationResponse = {
state: 'OPEN',
description: 'description',
confidential: false,
+ webUrl: 'http://gdk.test/gitlab-org/gitlab/-/issues/1',
createdAt: '2022-08-03T12:41:54Z',
updatedAt: '2022-08-08T12:41:54Z',
closedAt: null,
@@ -339,6 +340,7 @@ export const convertWorkItemMutationResponse = {
title: 'Updated title',
state: 'OPEN',
description: 'description',
+ webUrl: 'http://gdk.test/gitlab-org/gitlab/-/issues/1',
confidential: false,
createdAt: '2022-08-03T12:41:54Z',
updatedAt: '2022-08-08T12:41:54Z',
@@ -644,6 +646,7 @@ export const workItemResponseFactory = ({
title: 'Updated title',
state,
description: 'description',
+ webUrl: 'http://gdk.test/gitlab-org/gitlab/-/issues/1',
confidential,
createdAt,
updatedAt,
@@ -923,6 +926,7 @@ export const createWorkItemMutationResponse = {
createdAt: '2022-08-03T12:41:54Z',
updatedAt: null,
closedAt: null,
+ webUrl: 'http://gdk.test/gitlab-org/gitlab/-/issues/1',
author: {
...mockAssignees[0],
},
@@ -1010,6 +1014,7 @@ export const workItemHierarchyEmptyResponse = {
__typename: 'WorkItemType',
},
title: 'New title',
+ webUrl: 'http://gdk.test/gitlab-org/gitlab/-/issues/1',
description: '',
createdAt: '2022-08-03T12:41:54Z',
updatedAt: null,
@@ -1229,6 +1234,7 @@ export const workItemHierarchyResponse = {
__typename: 'WorkItemType',
},
title: 'New title',
+ webUrl: 'http://gdk.test/gitlab-org/gitlab/-/issues/1',
userPermissions: {
deleteWorkItem: true,
updateWorkItem: true,
@@ -1495,6 +1501,7 @@ export const changeIndirectWorkItemParentMutationResponse = {
__typename: 'WorkItemPermissions',
},
description: null,
+ webUrl: 'http://gdk.test/gitlab-org/gitlab/-/issues/1',
id: 'gid://gitlab/WorkItem/13',
iid: '13',
archived: false,
@@ -1564,6 +1571,7 @@ export const changeWorkItemParentMutationResponse = {
__typename: 'WorkItemPermissions',
},
description: null,
+ webUrl: 'http://gdk.test/gitlab-org/gitlab/-/issues/1',
id: 'gid://gitlab/WorkItem/2',
iid: '2',
archived: false,