Add unit test cases for info tooltip component

Signed-off-by: Suren Neware <sneware9@in.ibm.com>
Change-Id: Ic89aed1f8244073eab82cdc6f79dba9520585374
diff --git a/tests/unit/Global/InfoTooltip.spec.js b/tests/unit/Global/InfoTooltip.spec.js
new file mode 100644
index 0000000..90cb301
--- /dev/null
+++ b/tests/unit/Global/InfoTooltip.spec.js
@@ -0,0 +1,28 @@
+import { mount, createLocalVue } from '@vue/test-utils';
+import InfoTooltip from '@/components/Global/InfoTooltip';
+
+const localVue = createLocalVue();
+
+describe('InfoTooltip.vue', () => {
+  const wrapper = mount(InfoTooltip, {
+    localVue,
+    propsData: {
+      title: 'A tooltip test title',
+    },
+    mocks: {
+      $t: (key) => key,
+    },
+  });
+  it('should exist', () => {
+    expect(wrapper.exists()).toBe(true);
+  });
+  it('should render title attribute for button', () => {
+    expect(wrapper.attributes('title')).toBe('title');
+  });
+  it('should render icon-tooltip element', () => {
+    expect(wrapper.find('icon-tooltip').exists()).toBe(true);
+  });
+  it('should render correctly', () => {
+    expect(wrapper.element).toMatchSnapshot();
+  });
+});