diff --git a/src/qComponents/QTabPane/QTabPane.test.js b/src/qComponents/QTabPane/QTabPane.test.js new file mode 100644 index 00000000..938a0592 --- /dev/null +++ b/src/qComponents/QTabPane/QTabPane.test.js @@ -0,0 +1,14 @@ +import Component from './src/QTabPane'; + +describe('QTabPane', () => { + it('should match snapshot', async () => { + const instance = shallowMount(Component, { + propsData: { + name: 'pane_name', + title: 'Pane Title' + } + }); + + expect(instance.element).toMatchSnapshot(); + }); +}); diff --git a/src/qComponents/QTabPane/__snapshots__/QTabPane.test.js.snap b/src/qComponents/QTabPane/__snapshots__/QTabPane.test.js.snap new file mode 100644 index 00000000..1d139629 --- /dev/null +++ b/src/qComponents/QTabPane/__snapshots__/QTabPane.test.js.snap @@ -0,0 +1,23 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`QTabPane should match snapshot 1`] = ` +
+
+ + +
+ + +
+`; diff --git a/src/qComponents/QTabPane/index.js b/src/qComponents/QTabPane/index.js index 2f559c99..eef77113 100644 --- a/src/qComponents/QTabPane/index.js +++ b/src/qComponents/QTabPane/index.js @@ -1,6 +1,6 @@ -import QTabPane from './src/QTabPane.vue'; +import QTabPane from './src/QTabPane'; -QTabPane.install = function(Vue) { +QTabPane.install = Vue => { Vue.component(QTabPane.name, QTabPane); }; diff --git a/src/qComponents/QTabPane/src/QTabPane.vue b/src/qComponents/QTabPane/src/QTabPane.vue index 8e4c325d..be3c94d4 100644 --- a/src/qComponents/QTabPane/src/QTabPane.vue +++ b/src/qComponents/QTabPane/src/QTabPane.vue @@ -1,22 +1,24 @@