summaryrefslogtreecommitdiff
path: root/spec/frontend/header_search
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-07 01:02:14 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-07 01:02:14 +0000
commitff97077fc8908cc231d967aa7e7133198172b326 (patch)
tree32fed88d6b33b8cfd903a44ddf702e2b99e4e346 /spec/frontend/header_search
parent183b71521834f47fe2777085ccf001485b546285 (diff)
downloadgitlab-ce-ff97077fc8908cc231d967aa7e7133198172b326.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/header_search')
-rw-r--r--spec/frontend/header_search/components/app_spec.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/frontend/header_search/components/app_spec.js b/spec/frontend/header_search/components/app_spec.js
new file mode 100644
index 00000000000..200c823e592
--- /dev/null
+++ b/spec/frontend/header_search/components/app_spec.js
@@ -0,0 +1,27 @@
+import { GlSearchBoxByType } from '@gitlab/ui';
+import { shallowMount } from '@vue/test-utils';
+import HeaderSearchApp from '~/header_search/components/app.vue';
+
+describe('HeaderSearchApp', () => {
+ let wrapper;
+
+ const createComponent = () => {
+ wrapper = shallowMount(HeaderSearchApp);
+ };
+
+ afterEach(() => {
+ wrapper.destroy();
+ });
+
+ const findHeaderSearchInput = () => wrapper.findComponent(GlSearchBoxByType);
+
+ describe('template', () => {
+ beforeEach(() => {
+ createComponent();
+ });
+
+ it('renders Header Search Input always', () => {
+ expect(findHeaderSearchInput().exists()).toBe(true);
+ });
+ });
+});