Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/security_configuration/app_spec.js')
-rw-r--r--spec/frontend/security_configuration/app_spec.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/frontend/security_configuration/app_spec.js b/spec/frontend/security_configuration/app_spec.js
new file mode 100644
index 00000000000..11d481fb210
--- /dev/null
+++ b/spec/frontend/security_configuration/app_spec.js
@@ -0,0 +1,27 @@
+import { shallowMount } from '@vue/test-utils';
+import App from '~/security_configuration/components/app.vue';
+import ConfigurationTable from '~/security_configuration/components/configuration_table.vue';
+
+describe('App Component', () => {
+ let wrapper;
+
+ const createComponent = () => {
+ wrapper = shallowMount(App, {});
+ };
+ const findConfigurationTable = () => wrapper.findComponent(ConfigurationTable);
+
+ afterEach(() => {
+ wrapper.destroy();
+ });
+
+ it('renders correct primary & Secondary Heading', () => {
+ createComponent();
+ expect(wrapper.text()).toContain('Security Configuration');
+ expect(wrapper.text()).toContain('Testing & Compliance');
+ });
+
+ it('renders ConfigurationTable Component', () => {
+ createComponent();
+ expect(findConfigurationTable().exists()).toBe(true);
+ });
+});