Add unit test cases for status icon component

Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I58bb3e5f5fa9c02276b2031322ac01affeb17ca3
diff --git a/tests/unit/Global/StatusIcon.spec.js b/tests/unit/Global/StatusIcon.spec.js
new file mode 100644
index 0000000..0fc8b7c
--- /dev/null
+++ b/tests/unit/Global/StatusIcon.spec.js
@@ -0,0 +1,38 @@
+import { mount, createLocalVue } from '@vue/test-utils';
+import StatusIcon from '@/components/Global/StatusIcon';
+
+const localVue = createLocalVue();
+
+describe('StatusIcon.vue', () => {
+  const wrapper = mount(StatusIcon, {
+    localVue,
+    propsData: {
+      status: 'info',
+    },
+  });
+  it('should exist', () => {
+    expect(wrapper.exists()).toBe(true);
+  });
+  it('should render icon-info element', () => {
+    expect(wrapper.find('.info').exists()).toBe(true);
+  });
+  it('should render icon-success element', async () => {
+    await wrapper.setProps({ status: 'success' });
+    expect(wrapper.find('.success').exists()).toBe(true);
+  });
+  it('should render icon-warning element', async () => {
+    await wrapper.setProps({ status: 'warning' });
+    expect(wrapper.find('.warning').exists()).toBe(true);
+  });
+  it('should render icon-danger element', async () => {
+    await wrapper.setProps({ status: 'danger' });
+    expect(wrapper.find('.danger').exists()).toBe(true);
+  });
+  it('should render icon-secondary element', async () => {
+    await wrapper.setProps({ status: 'secondary' });
+    expect(wrapper.find('.status-icon').exists()).toBe(true);
+  });
+  it('should render correctly', () => {
+    expect(wrapper.element).toMatchSnapshot();
+  });
+});