From 9dc93a4519d9d5d7be48ff274127136236a3adb3 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 20 Apr 2021 23:50:22 +0000 Subject: Add latest changes from gitlab-org/gitlab@13-11-stable-ee --- .../runner/runner_detail/runner_detail_app_spec.js | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 spec/frontend/runner/runner_detail/runner_detail_app_spec.js (limited to 'spec/frontend/runner/runner_detail') diff --git a/spec/frontend/runner/runner_detail/runner_detail_app_spec.js b/spec/frontend/runner/runner_detail/runner_detail_app_spec.js new file mode 100644 index 00000000000..5caa37c8cb3 --- /dev/null +++ b/spec/frontend/runner/runner_detail/runner_detail_app_spec.js @@ -0,0 +1,29 @@ +import { shallowMount } from '@vue/test-utils'; +import RunnerDetailsApp from '~/runner/runner_details/runner_details_app.vue'; + +const mockRunnerId = '55'; + +describe('RunnerDetailsApp', () => { + let wrapper; + + const createComponent = (props) => { + wrapper = shallowMount(RunnerDetailsApp, { + propsData: { + runnerId: mockRunnerId, + ...props, + }, + }); + }; + + beforeEach(() => { + createComponent(); + }); + + afterEach(() => { + wrapper.destroy(); + }); + + it('displays the runner id', () => { + expect(wrapper.text()).toContain('Runner #55'); + }); +}); -- cgit v1.2.1