diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-08 18:09:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-08 18:09:24 +0300 |
commit | 833d57e60da633435d845a7867e46e6092c46520 (patch) | |
tree | 35676d3a0da36ef28b67cadb06af474b6c8f5b85 /spec/frontend/repository | |
parent | c52b72f5772d52e9fc85bd9f4e8b8497a6278c37 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/repository')
4 files changed, 7 insertions, 12 deletions
diff --git a/spec/frontend/repository/components/__snapshots__/last_commit_spec.js.snap b/spec/frontend/repository/components/__snapshots__/last_commit_spec.js.snap index cf2e6b00800..1dca65dd862 100644 --- a/spec/frontend/repository/components/__snapshots__/last_commit_spec.js.snap +++ b/spec/frontend/repository/components/__snapshots__/last_commit_spec.js.snap @@ -10,7 +10,7 @@ exports[`Repository last commit component renders commit widget 1`] = ` imgcssclasses="" imgsize="40" imgsrc="https://test.com" - linkhref="/test" + linkhref="https://test.com/test" tooltipplacement="top" tooltiptext="" username="" @@ -24,7 +24,7 @@ exports[`Repository last commit component renders commit widget 1`] = ` > <gl-link-stub class="commit-row-message item-title" - href="/commit/123" + href="https://test.com/commit/123" > Commit title </gl-link-stub> @@ -36,7 +36,7 @@ exports[`Repository last commit component renders commit widget 1`] = ` > <gl-link-stub class="commit-author-link js-user-link" - href="/test" + href="https://test.com/test" > Test @@ -110,7 +110,7 @@ exports[`Repository last commit component renders the signature HTML as returned imgcssclasses="" imgsize="40" imgsrc="https://test.com" - linkhref="/test" + linkhref="https://test.com/test" tooltipplacement="top" tooltiptext="" username="" @@ -124,7 +124,7 @@ exports[`Repository last commit component renders the signature HTML as returned > <gl-link-stub class="commit-row-message item-title" - href="/commit/123" + href="https://test.com/commit/123" > Commit title </gl-link-stub> @@ -136,7 +136,7 @@ exports[`Repository last commit component renders the signature HTML as returned > <gl-link-stub class="commit-author-link js-user-link" - href="/test" + href="https://test.com/test" > Test diff --git a/spec/frontend/repository/components/last_commit_spec.js b/spec/frontend/repository/components/last_commit_spec.js index 115784a9201..a5bfeb08fe4 100644 --- a/spec/frontend/repository/components/last_commit_spec.js +++ b/spec/frontend/repository/components/last_commit_spec.js @@ -12,13 +12,11 @@ function createCommitData(data = {}) { titleHtml: 'Commit title', message: 'Commit message', webUrl: 'https://test.com/commit/123', - webPath: '/commit/123', authoredDate: '2019-01-01', author: { name: 'Test', avatarUrl: 'https://test.com', webUrl: 'https://test.com/test', - webPath: '/test', }, pipeline: { detailedStatus: { diff --git a/spec/frontend/repository/components/preview/__snapshots__/index_spec.js.snap b/spec/frontend/repository/components/preview/__snapshots__/index_spec.js.snap index 34cd8d67081..69b7a3931f8 100644 --- a/spec/frontend/repository/components/preview/__snapshots__/index_spec.js.snap +++ b/spec/frontend/repository/components/preview/__snapshots__/index_spec.js.snap @@ -16,7 +16,7 @@ exports[`Repository file preview component renders file HTML 1`] = ` /> <gl-link-stub - href="/test.md" + href="http://test.com" > <strong> README.md diff --git a/spec/frontend/repository/components/preview/index_spec.js b/spec/frontend/repository/components/preview/index_spec.js index 30b313d6142..6ae323f5c3f 100644 --- a/spec/frontend/repository/components/preview/index_spec.js +++ b/spec/frontend/repository/components/preview/index_spec.js @@ -31,7 +31,6 @@ describe('Repository file preview component', () => { it('renders file HTML', () => { factory({ webUrl: 'http://test.com', - webPath: '/test.md', name: 'README.md', }); @@ -45,7 +44,6 @@ describe('Repository file preview component', () => { it('handles hash after render', () => { factory({ webUrl: 'http://test.com', - webPath: '/test.md', name: 'README.md', }); @@ -62,7 +60,6 @@ describe('Repository file preview component', () => { it('renders loading icon', () => { factory({ webUrl: 'http://test.com', - webPath: '/test.md', name: 'README.md', }); |