summaryrefslogtreecommitdiff
path: root/tests/unit/Global/InfoTooltip.spec.js
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2021-01-07 08:33:14 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2021-01-12 23:09:18 +0300
commite88b816d47ce36ebc449b3ad78496916beda8ca4 (patch)
tree700d86cf4c03b8de36a18411fd5365aebcaa1644 /tests/unit/Global/InfoTooltip.spec.js
parentff70e9e48682d50e48a5231371e75a782bab1694 (diff)
downloadwebui-vue-e88b816d47ce36ebc449b3ad78496916beda8ca4.tar.xz
Fix broken info-tooltip spec and snapshot
- Two of the test are not needed since they are testing the vue internal functionality of rendering a title attribute value correctly and importing the right carbon icon. For this test the only tests needed is the snapshot. It could be debated that this component does not require a spec at all. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Icca107b185cd579d47877d50ec5763c5ffffc06a
Diffstat (limited to 'tests/unit/Global/InfoTooltip.spec.js')
-rw-r--r--tests/unit/Global/InfoTooltip.spec.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/unit/Global/InfoTooltip.spec.js b/tests/unit/Global/InfoTooltip.spec.js
index 90cb301e..37290f67 100644
--- a/tests/unit/Global/InfoTooltip.spec.js
+++ b/tests/unit/Global/InfoTooltip.spec.js
@@ -1,7 +1,9 @@
import { mount, createLocalVue } from '@vue/test-utils';
import InfoTooltip from '@/components/Global/InfoTooltip';
+import { BootstrapVue } from 'bootstrap-vue';
const localVue = createLocalVue();
+localVue.use(BootstrapVue);
describe('InfoTooltip.vue', () => {
const wrapper = mount(InfoTooltip, {
@@ -16,12 +18,6 @@ describe('InfoTooltip.vue', () => {
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();
});