diff options
author | Phil Hughes <me@iamphill.com> | 2019-06-04 14:38:18 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-06-05 08:46:32 +0100 |
commit | 4644a2daf5ec5e86e2b2989f04e99e4f081f6fef (patch) | |
tree | 40c9376ce43f2c2b9d964fb67b1c35cfb0077773 /spec/frontend | |
parent | df549eb28c83b27500619ccb14c201a4ff87daa3 (diff) | |
download | gitlab-ce-4644a2daf5ec5e86e2b2989f04e99e4f081f6fef.tar.gz |
Add web_url to tree entry in GraphQL API
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/repository/components/table/row_spec.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/frontend/repository/components/table/row_spec.js b/spec/frontend/repository/components/table/row_spec.js index 6b4508c418e..a70dc7bb866 100644 --- a/spec/frontend/repository/components/table/row_spec.js +++ b/spec/frontend/repository/components/table/row_spec.js @@ -86,4 +86,16 @@ describe('Repository table row component', () => { expect(vm.find('.commit-sha').text()).toContain('1'); }); + + it('renders link with href', () => { + factory({ + id: '1', + path: 'test', + type: 'blob', + url: 'https://test.com', + currentPath: '/', + }); + + expect(vm.find('a').attributes('href')).toEqual('https://test.com'); + }); }); |