diff options
Diffstat (limited to 'spec/frontend/self_monitor/components/self_monitor_form_spec.js')
-rw-r--r-- | spec/frontend/self_monitor/components/self_monitor_form_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/self_monitor/components/self_monitor_form_spec.js b/spec/frontend/self_monitor/components/self_monitor_form_spec.js index 0e6abba08f3..aa6f71b6412 100644 --- a/spec/frontend/self_monitor/components/self_monitor_form_spec.js +++ b/spec/frontend/self_monitor/components/self_monitor_form_spec.js @@ -2,6 +2,7 @@ import { shallowMount } from '@vue/test-utils'; import { GlDeprecatedButton } from '@gitlab/ui'; import SelfMonitor from '~/self_monitor/components/self_monitor_form.vue'; import { createStore } from '~/self_monitor/store'; +import { TEST_HOST } from 'helpers/test_constants'; describe('self monitor component', () => { let wrapper; @@ -82,7 +83,7 @@ describe('self monitor component', () => { .find({ ref: 'selfMonitoringFormText' }) .find('a') .attributes('href'), - ).toEqual('http://localhost/instance-administrators-random/gitlab-self-monitoring'); + ).toEqual(`${TEST_HOST}/instance-administrators-random/gitlab-self-monitoring`); }); }); }); |