diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-07 00:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-07 00:08:48 +0300 |
commit | a89cb5cbdd832d4d9e80517973aceda6bc0a3856 (patch) | |
tree | 574475bd0901a2f8906d36a4728b8bbb95b41e1c /spec/frontend/environments | |
parent | 0d6fa033121a9bef708b8f2de186c4034c61d4a3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/environments')
-rw-r--r-- | spec/frontend/environments/environment_external_url_spec.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/frontend/environments/environment_external_url_spec.js b/spec/frontend/environments/environment_external_url_spec.js new file mode 100644 index 00000000000..9997ea94941 --- /dev/null +++ b/spec/frontend/environments/environment_external_url_spec.js @@ -0,0 +1,16 @@ +import { shallowMount } from '@vue/test-utils'; +import ExternalUrlComp from '~/environments/components/environment_external_url.vue'; + +describe('External URL Component', () => { + let wrapper; + const externalUrl = 'https://gitlab.com'; + + beforeEach(() => { + wrapper = shallowMount(ExternalUrlComp, { propsData: { externalUrl } }); + }); + + it('should link to the provided externalUrl prop', () => { + expect(wrapper.attributes('href')).toEqual(externalUrl); + expect(wrapper.find('a').exists()).toBe(true); + }); +}); |