diff --git a/babel.config.js b/babel.config.js index 1c65d608..ee5b2c01 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,5 @@ module.exports = { presets: [ - ['@vue/app'] + [ "@vue/app", { useBuiltIns: "entry" } ] ] } diff --git a/jest.config.js b/jest.config.js index f503f1b3..0afd6c78 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,8 +8,9 @@ module.exports = { transform: { '^.+\\.vue$': 'vue-jest', '.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', - '^.+\\.jsx?$': 'babel-jest' + '^.+\\.jsx?$': '/node_modules/babel-jest' }, + transformIgnorePatterns: ["/node_modules/(?!@coreui/icons)"], moduleNameMapper: { '^@/(.*)$': '/src/$1' }, diff --git a/package.json b/package.json index 2aad4cc8..41bee4f4 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@coreui/coreui": "next", "@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.3.1", "@coreui/coreui-vue-chartjs": "../coreui-vue-chartjs", - "@coreui/icons": "coreui/coreui-icons#v1-alpha", + "@coreui/icons": "github:coreui/coreui-icons#v1-alpha", "@coreui/vue": "../coreui-vue", "vue": "^2.6.10", "vue-router": "^3.0.7" @@ -28,12 +28,12 @@ "@vue/cli-plugin-eslint": "^3.9.2", "@vue/cli-plugin-unit-jest": "^3.9.0", "@vue/cli-service": "^3.9.2", - "@vue/test-utils": "^1.0.0-beta.25", - "babel-core": "^6.26.3", + "@vue/test-utils": "^1.0.0-beta.29", + "babel-core": "^7.0.0-bridge.0", + "babel-jest": "23.6.0", "babel-plugin-dynamic-import-node": "^2.3.0", "babel-plugin-module-resolver": "^3.2.0", "babel-preset-vue-app": "^2.0.0", - "babel-jest": "23.6.0", "growl": "^1.10.5", "https-proxy-agent": "^2.2.2", "node-sass": "^4.12.0", diff --git a/tests/unit/.eslintrc.js b/tests/unit/.eslintrc.js new file mode 100644 index 00000000..4e51c63f --- /dev/null +++ b/tests/unit/.eslintrc.js @@ -0,0 +1,8 @@ +module.exports = { + env: { + jest: true + }, + rules: { + 'import/no-extraneous-dependencies': 'off' + } +} \ No newline at end of file diff --git a/tests/unit/App.spec.js b/tests/unit/App.spec.js new file mode 100644 index 00000000..d9426795 --- /dev/null +++ b/tests/unit/App.spec.js @@ -0,0 +1,31 @@ +import { shallowMount, createLocalVue } from '@vue/test-utils' +import VueRouter from 'vue-router' +import CoreuiVue from '@coreui/vue' +import App from '@/App' + +const localVue = createLocalVue() +localVue.use(VueRouter) +const router = new VueRouter() + + +localVue.use(CoreuiVue) + +describe('App.vue', () => { + it('has a name', () => { + expect(App.name).toMatch('app') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(App, { + localVue, + router + }) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is App', () => { + const wrapper = shallowMount(App, { + localVue, + router + }) + expect(wrapper.is(App)).toBe(true) + }) +}) diff --git a/tests/unit/containers/DefaultContainer.spec.js b/tests/unit/containers/DefaultContainer.spec.js new file mode 100644 index 00000000..9eba0824 --- /dev/null +++ b/tests/unit/containers/DefaultContainer.spec.js @@ -0,0 +1,30 @@ +import CoreuiVue from '@coreui/vue' +import { shallowMount, createLocalVue } from '@vue/test-utils'; +import VueRouter from 'vue-router' +import DefaultContainer from '@/containers/DefaultContainer' + +const localVue = createLocalVue() +localVue.use(VueRouter) +const router = new VueRouter() + +localVue.use(CoreuiVue) + +describe('DefaultContainer.vue', () => { + it('has a name', () => { + expect(DefaultContainer.name).toMatch('full') + }) + test('renders correctly', () => { + const wrapper = shallowMount(DefaultContainer, { + localVue, + router + }) + expect(wrapper.element).toMatchSnapshot() + }) + it('is Vue instance', () => { + const wrapper = shallowMount(DefaultContainer, { + localVue, + router + }) + expect(wrapper.isVueInstance()).toBe(true) + }) +}) diff --git a/tests/unit/containers/DefaultHeaderDropdownAccnt.spec.js b/tests/unit/containers/DefaultHeaderDropdownAccnt.spec.js new file mode 100644 index 00000000..37f2dfd3 --- /dev/null +++ b/tests/unit/containers/DefaultHeaderDropdownAccnt.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import CoreuiVue from '@coreui/vue' +import DefaultHeaderDropdownAccnt from '@/containers/DefaultHeaderDropdownAccnt' +import { shallowMount } from '@vue/test-utils'; + +Vue.use(CoreuiVue) + +describe('DefaultHeaderDropdownAccnt.vue', () => { + it('has a name', () => { + expect(DefaultHeaderDropdownAccnt.name).toMatch('DefaultHeaderDropdownAccnt') + }) + it('has a created hook', () => { + expect(typeof DefaultHeaderDropdownAccnt.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof DefaultHeaderDropdownAccnt.data).toMatch('function') + const defaultData = DefaultHeaderDropdownAccnt.data() + expect(defaultData.itemsCount).toBe(42) + }) + test('renders correctly', () => { + const wrapper = shallowMount(DefaultHeaderDropdownAccnt) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/containers/TheFooter.spec.js b/tests/unit/containers/TheFooter.spec.js new file mode 100644 index 00000000..9cbee4b1 --- /dev/null +++ b/tests/unit/containers/TheFooter.spec.js @@ -0,0 +1,14 @@ +import Vue from 'vue' +import CoreuiVue from '@coreui/vue' +import TheFooter from '@/containers/TheFooter' +import { shallowMount } from '@vue/test-utils'; + +Vue.use(CoreuiVue) + +describe('TheFooter.vue', () => { + + test('renders correctly', () => { + const wrapper = shallowMount(TheFooter) + expect(wrapper.element).toMatchSnapshot() + }) +}) \ No newline at end of file diff --git a/tests/unit/containers/TheHeader.spec.js b/tests/unit/containers/TheHeader.spec.js new file mode 100644 index 00000000..6942cf9d --- /dev/null +++ b/tests/unit/containers/TheHeader.spec.js @@ -0,0 +1,13 @@ +import Vue from 'vue' +import CoreuiVue from '@coreui/vue' +import TheHeader from '@/containers/TheHeader' +import { shallowMount } from '@vue/test-utils'; + +Vue.use(CoreuiVue) + +describe('TheHeader.vue', () => { + test('renders correctly', () => { + const wrapper = shallowMount(TheHeader) + expect(wrapper.element).toMatchSnapshot() + }) +}) \ No newline at end of file diff --git a/tests/unit/containers/TheSidebar.spec.js b/tests/unit/containers/TheSidebar.spec.js new file mode 100644 index 00000000..71d2540f --- /dev/null +++ b/tests/unit/containers/TheSidebar.spec.js @@ -0,0 +1,16 @@ +import Vue from 'vue' +import { shallowMount } from '@vue/test-utils'; +import CoreuiVue from '@coreui/vue' +import TheSidebar from '@/containers/TheSidebar' + +Vue.use(CoreuiVue) + +describe('TheSidebar.vue', () => { + it('has a name', () => { + expect(TheSidebar.name).toMatch('TheSidebar') + }) + test('renders correctly', () => { + const wrapper = shallowMount(TheSidebar) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/containers/__snapshots__/DefaultContainer.spec.js.snap b/tests/unit/containers/__snapshots__/DefaultContainer.spec.js.snap new file mode 100644 index 00000000..58ff7edd --- /dev/null +++ b/tests/unit/containers/__snapshots__/DefaultContainer.spec.js.snap @@ -0,0 +1,31 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`DefaultContainer.vue renders correctly 1`] = ` +
+ + + + +
+
+ + + + + +
+
+ + +
+`; diff --git a/tests/unit/containers/__snapshots__/DefaultHeaderDropdownAccnt.spec.js.snap b/tests/unit/containers/__snapshots__/DefaultHeaderDropdownAccnt.spec.js.snap new file mode 100644 index 00000000..2ebba2e6 --- /dev/null +++ b/tests/unit/containers/__snapshots__/DefaultHeaderDropdownAccnt.spec.js.snap @@ -0,0 +1,242 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`DefaultHeaderDropdownAccnt.vue renders correctly 1`] = ` + + + + + Account + + + + + + Updates + + + 42 + + + + + + Messages + + + 42 + + + + + + Tasks + + + 42 + + + + + + Comments + + + 42 + + + + + + Settings + + + + + + Profile + + + + + + Settings + + + + + + Payments + + + 42 + + + + + + Projects + + + 42 + + + + + + + + Lock Account + + + + + + Logout + + + +`; diff --git a/tests/unit/containers/__snapshots__/TheFooter.spec.js.snap b/tests/unit/containers/__snapshots__/TheFooter.spec.js.snap new file mode 100644 index 00000000..409aa72c --- /dev/null +++ b/tests/unit/containers/__snapshots__/TheFooter.spec.js.snap @@ -0,0 +1,35 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`TheFooter.vue renders correctly 1`] = ` + +
+ + CoreUI + + + + © 2018 creativeLabs. + +
+ +
+ + Powered by + + + + CoreUI for Vue + +
+
+`; diff --git a/tests/unit/containers/__snapshots__/TheHeader.spec.js.snap b/tests/unit/containers/__snapshots__/TheHeader.spec.js.snap new file mode 100644 index 00000000..5f1abeb7 --- /dev/null +++ b/tests/unit/containers/__snapshots__/TheHeader.spec.js.snap @@ -0,0 +1,145 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`TheHeader.vue renders correctly 1`] = ` + + + + + CoreUI Logo + + + + +
    + + Dashboard + + + + Users + + + + Settings + +
+ + + + + + + 5 + + + + + + + + + + + + + +
+`; diff --git a/tests/unit/containers/__snapshots__/TheSidebar.spec.js.snap b/tests/unit/containers/__snapshots__/TheSidebar.spec.js.snap new file mode 100644 index 00000000..aa20b88c --- /dev/null +++ b/tests/unit/containers/__snapshots__/TheSidebar.spec.js.snap @@ -0,0 +1,22 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`TheSidebar.vue renders correctly 1`] = ` + + + + + + + + + + + +`; diff --git a/tests/unit/views/Charts.spec.js b/tests/unit/views/Charts.spec.js new file mode 100644 index 00000000..5ab4ef31 --- /dev/null +++ b/tests/unit/views/Charts.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { shallowMount } from '@vue/test-utils'; +import CoreuiVue from '@coreui/vue' +import Charts from '@/views/Charts' + +Vue.use(CoreuiVue) + +describe('Charts.vue', () => { + it('has a name', () => { + expect(Charts.name).toMatch('Charts') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Charts) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Charts', () => { + const wrapper = shallowMount(Charts) + expect(wrapper.is(Charts)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Charts) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/Dashboard.spec.js b/tests/unit/views/Dashboard.spec.js new file mode 100644 index 00000000..699b4604 --- /dev/null +++ b/tests/unit/views/Dashboard.spec.js @@ -0,0 +1,40 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import { CIconPlugin } from '@coreui/icons/vue' +import Dashboard from '@/views/Dashboard' +import { iconsSet } from '@/assets/icons/icons.js' + + +Vue.use(CoreuiVue) +Vue.use(CIconPlugin, iconsSet) + +describe('Dashboard.vue', () => { + it('has a name', () => { + expect(Dashboard.name).toMatch('Dashboard') + }) + it('has a created hook', () => { + expect(typeof Dashboard.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof Dashboard.data).toMatch('function') + const defaultData = Dashboard.data() + expect(defaultData.selected).toMatch('Month') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Dashboard) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Dashboard', () => { + const wrapper = shallowMount(Dashboard) + expect(wrapper.is(Dashboard)).toBe(true) + }) + it('should render correct content', () => { + const wrapper = shallowMount(Dashboard) + expect(wrapper.find('#traffic').text()).toMatch('Traffic') + }) + test('renders correctly', () => { + const wrapper = shallowMount(Dashboard) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/__snapshots__/Charts.spec.js.snap b/tests/unit/views/__snapshots__/Charts.spec.js.snap new file mode 100644 index 00000000..71f52200 --- /dev/null +++ b/tests/unit/views/__snapshots__/Charts.spec.js.snap @@ -0,0 +1,135 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Charts.vue renders correctly 1`] = ` +
+ + + + + Line Chart + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+`; diff --git a/tests/unit/views/__snapshots__/Dashboard.spec.js.snap b/tests/unit/views/__snapshots__/Dashboard.spec.js.snap new file mode 100644 index 00000000..ed9c645a --- /dev/null +++ b/tests/unit/views/__snapshots__/Dashboard.spec.js.snap @@ -0,0 +1,951 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Dashboard.vue renders correctly 1`] = ` +
+ + + + + + +

+ Traffic +

+ +
+ November 2017 +
+
+ + + + + + + + + + Day + + + + + Month + + + + + Year + + + + +
+ + +
+ + + + +
+ Visits +
+ + + 29.703 Users (40%) + + + +
+ + +
+ Unique +
+ + + 24.093 Users (20%) + + + +
+ + +
+ Pageviews +
+ + + 78.706 Views (60%) + + + +
+ + +
+ New Users +
+ + + 22.123 Users (80%) + + + +
+ + +
+ Bounce Rate +
+ + + Average Rate (40.15%) + + + +
+
+
+
+ + + + + + + + + + + + + New Clients + +
+ + + 9,123 + +
+
+ + + + + Recurring Clients + +
+ + + 22,643 + +
+
+
+ +
+ +
+
+ + + Monday + + +
+ +
+ + + +
+
+ +
+
+ + + Tuesday + + +
+ +
+ + + +
+
+ +
+
+ + + Wednesday + + +
+ +
+ + + +
+
+ +
+
+ + + Thursday + + +
+ +
+ + + +
+
+ +
+
+ + + Friday + + +
+ +
+ + + +
+
+ +
+
+ + + Saturday + + +
+ +
+ + + +
+
+ +
+
+ + + Sunday + + +
+ +
+ + + +
+
+ +
+ + + +   + + + + New clients +    + + + +   + + + + Recurring clients + + +
+
+ + + + + + + Pageviews + +
+ + + 78,623 + +
+
+ + + + + Organic + +
+ + + 49,123 + +
+
+
+ +
+ +
    +
    +
    + + + + Male + + + + 43% + +
    + +
    + +
    +
    + +
    +
    + + + + Female + + + + 37% + +
    + +
    + +
    +
    + +
    +
    + + + + Organic Search + + + + + 191,235 + + (56%) + + +
    + +
    + +
    +
    + +
    +
    + + + + Facebook + + + + + 51,223 + + (15%) + + +
    + +
    + +
    +
    + +
    +
    + + + + Twitter + + + + + 37,564 + + (11%) + + +
    + +
    + +
    +
    + +
    +
    + + + + LinkedIn + + + + + 27,319 + +  (8%) + + +
    + +
    + +
    +
    + +
    + + + +
    +
+
+
+ +
+ + +
+
+
+
+`; diff --git a/tests/unit/views/base/Breadcrumbs.spec.js b/tests/unit/views/base/Breadcrumbs.spec.js new file mode 100644 index 00000000..76e6249f --- /dev/null +++ b/tests/unit/views/base/Breadcrumbs.spec.js @@ -0,0 +1,32 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Breadcrumbs from '@/views/base/Breadcrumbs' + +Vue.use(CoreuiVue) + +describe('Breadcrumbs.vue', () => { + it('has a name', () => { + expect(Breadcrumbs.name).toMatch('breadcrumbs') + }) + it('has a created hook', () => { + expect(typeof Breadcrumbs.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof Breadcrumbs.data).toMatch('function') + const defaultData = Breadcrumbs.data() + expect(typeof defaultData.items).toMatch('object') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Breadcrumbs) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Breadcrumbs', () => { + const wrapper = shallowMount(Breadcrumbs) + expect(wrapper.is(Breadcrumbs)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = mount(Breadcrumbs) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Cards.spec.js b/tests/unit/views/base/Cards.spec.js new file mode 100644 index 00000000..2f1aae73 --- /dev/null +++ b/tests/unit/views/base/Cards.spec.js @@ -0,0 +1,32 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Cards from '@/views/base/Cards' + +Vue.use(CoreuiVue) + +describe('Cards.vue', () => { + it('has a name', () => { + expect(Cards.name).toMatch('cards') + }) + it('has a created hook', () => { + expect(typeof Cards.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof Cards.data).toMatch('function') + const defaultData = Cards.data() + expect(defaultData.show).toBe(true) + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Cards) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Cards', () => { + const wrapper = shallowMount(Cards) + expect(wrapper.is(Cards)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = mount(Cards) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Carousels.spec.js b/tests/unit/views/base/Carousels.spec.js new file mode 100644 index 00000000..2751a04b --- /dev/null +++ b/tests/unit/views/base/Carousels.spec.js @@ -0,0 +1,20 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Carousels from '@/views/base/Carousels' + +Vue.use(CoreuiVue) + +describe('Carousels.vue', () => { + it('has a name', () => { + expect(Carousels.name).toMatch('carousels') + }) + it('is Carousels', () => { + const wrapper = shallowMount(Carousels) + expect(wrapper.is(Carousels)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = mount(Carousels) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Collapses.spec.js b/tests/unit/views/base/Collapses.spec.js new file mode 100644 index 00000000..01306a60 --- /dev/null +++ b/tests/unit/views/base/Collapses.spec.js @@ -0,0 +1,36 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Collapses from '@/views/base/Collapses' + +Vue.use(CoreuiVue) + +describe('Collapses.vue', () => { + it('has a name', () => { + expect(Collapses.name).toMatch('collapses') + }) + it('has a created hook', () => { + expect(typeof Collapses.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof Collapses.data).toMatch('function') + const defaultData = Collapses.data() + expect(defaultData.showCollapse).toBe(true) + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Collapses) + expect(wrapper.isVueInstance()).toBe(true) + }) + // it('is Collapses', () => { + // const wrapper = shallowMount(Collapses) + // expect(wrapper.is(Collapses)).toBe(true) + // }) + // it('should render correct content', () => { + // const wrapper = mount(Collapses) + // expect(wrapper.find('header.card-header > div > strong').text()).toMatch('Bootstrap Collapse') + // }) + test('renders correctly', () => { + const wrapper = mount(Collapses) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Forms.spec.js b/tests/unit/views/base/Forms.spec.js new file mode 100644 index 00000000..5bf85172 --- /dev/null +++ b/tests/unit/views/base/Forms.spec.js @@ -0,0 +1,21 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Forms from '@/views/base/Forms' + +Vue.use(CoreuiVue) + +describe('Forms.vue', () => { + it('has a name', () => { + expect(Forms.name).toMatch('forms') + }) + it('is Forms', () => { + const wrapper = shallowMount(Forms) + expect(wrapper.is(Forms)).toBe(true) + }) + // render random chackboxes + // test('renders correctly', () => { + // const wrapper = shallowMount(Forms) + // expect(wrapper.element).toMatchSnapshot() + // }) +}) diff --git a/tests/unit/views/base/Jumbotrons.spec.js b/tests/unit/views/base/Jumbotrons.spec.js new file mode 100644 index 00000000..82cfd64a --- /dev/null +++ b/tests/unit/views/base/Jumbotrons.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Jumbotrons from '@/views/base/Jumbotrons' + +Vue.use(CoreuiVue) + +describe('Jumbotrons.vue', () => { + it('has a name', () => { + expect(Jumbotrons.name).toMatch('jumbotrons') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Jumbotrons) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Jumbotrons', () => { + const wrapper = shallowMount(Jumbotrons) + expect(wrapper.is(Jumbotrons)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Jumbotrons) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/ListGroups.spec.js b/tests/unit/views/base/ListGroups.spec.js new file mode 100644 index 00000000..f8b524a6 --- /dev/null +++ b/tests/unit/views/base/ListGroups.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import ListGroups from '@/views/base/ListGroups' + +Vue.use(CoreuiVue) + +describe('ListGroups.vue', () => { + it('has a name', () => { + expect(ListGroups.name).toMatch('list-groups') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(ListGroups) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is ListGroups', () => { + const wrapper = shallowMount(ListGroups) + expect(wrapper.is(ListGroups)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(ListGroups) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Navbars.spec.js b/tests/unit/views/base/Navbars.spec.js new file mode 100644 index 00000000..00abd61a --- /dev/null +++ b/tests/unit/views/base/Navbars.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Navbars from '@/views/base/Navbars' + +Vue.use(CoreuiVue) + +describe('Navbars.vue', () => { + it('has a name', () => { + expect(Navbars.name).toMatch('navbars') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Navbars) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Navbars', () => { + const wrapper = shallowMount(Navbars) + expect(wrapper.is(Navbars)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Navbars) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Navs.spec.js b/tests/unit/views/base/Navs.spec.js new file mode 100644 index 00000000..38254b85 --- /dev/null +++ b/tests/unit/views/base/Navs.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Navs from '@/views/base/Navs' + +Vue.use(CoreuiVue) + +describe('Navs.vue', () => { + it('has a name', () => { + expect(Navs.name).toMatch('navs') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Navs) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Navbars', () => { + const wrapper = shallowMount(Navs) + expect(wrapper.is(Navs)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Navs) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Paginations.spec.js b/tests/unit/views/base/Paginations.spec.js new file mode 100644 index 00000000..81be6f81 --- /dev/null +++ b/tests/unit/views/base/Paginations.spec.js @@ -0,0 +1,32 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Paginations from '@/views/base/Paginations' + +Vue.use(CoreuiVue) + +describe('Paginations.vue', () => { + it('has a name', () => { + expect(Paginations.name).toMatch('paginations') + }) + it('has a created hook', () => { + expect(typeof Paginations.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof Paginations.data).toMatch('function') + const defaultData = Paginations.data() + expect(defaultData.currentPage).toBe(3) + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Paginations) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Paginations', () => { + const wrapper = shallowMount(Paginations) + expect(wrapper.is(Paginations)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Paginations) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Popovers.spec.js b/tests/unit/views/base/Popovers.spec.js new file mode 100644 index 00000000..fa7c985a --- /dev/null +++ b/tests/unit/views/base/Popovers.spec.js @@ -0,0 +1,23 @@ +import Vue from 'vue' +import { mount, shallowMount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Popovers from '@/views/base/Popovers' + +Vue.use(CoreuiVue) + +describe('Popovers.vue', () => { + it('has a name', () => { + expect(Popovers.name).toMatch('popovers') + }) + it('has a created hook', () => { + expect(typeof Popovers.data).toMatch('function') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Popovers) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Popovers', () => { + const wrapper = shallowMount(Popovers) + expect(wrapper.is(Popovers)).toBe(true) + }) +}) diff --git a/tests/unit/views/base/ProgressBars.spec.js b/tests/unit/views/base/ProgressBars.spec.js new file mode 100644 index 00000000..8738b402 --- /dev/null +++ b/tests/unit/views/base/ProgressBars.spec.js @@ -0,0 +1,40 @@ +import Vue from 'vue' +import { mount, shallowMount } from '@vue/test-utils'; +import CoreuiVue from '@coreui/vue' +import ProgressBars from '@/views/base/ProgressBars' + +Vue.use(CoreuiVue) + +jest.useFakeTimers() + +describe('ProgressBars.vue', () => { + it('has a name', () => { + expect(ProgressBars.name).toMatch('progress-bars') + }) + it('has a created hook', () => { + expect(typeof ProgressBars.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof ProgressBars.data).toMatch('function') + }) + it('is Vue instance', () => { + const wrapper = mount(ProgressBars) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is ProgressBars', () => { + const wrapper = mount(ProgressBars) + expect(wrapper.is(ProgressBars)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(ProgressBars) + expect(wrapper.element).toMatchSnapshot() + }) + it('should be destroyed', () => { + const wrapper = mount(ProgressBars) + wrapper.destroy() + }) + it('should have methods', () => { + expect(typeof ProgressBars.methods.clicked ).toEqual('function') + expect(ProgressBars.methods.clicked()).toBeUndefined() + }) +}) diff --git a/tests/unit/views/base/Switches.spec.js b/tests/unit/views/base/Switches.spec.js new file mode 100644 index 00000000..c4aff3ef --- /dev/null +++ b/tests/unit/views/base/Switches.spec.js @@ -0,0 +1,33 @@ +import Vue from 'vue' +import { mount, shallowMount } from '@vue/test-utils'; +import CoreuiVue from '@coreui/vue' +import Switches from '@/views/base/Switches' + +Vue.use(CoreuiVue) + +describe('Switches.vue', () => { + it('has a name', () => { + expect(Switches.name).toMatch('switches') + }) + it('has a created hook', () => { + expect(typeof Switches.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof Switches.data).toMatch('function') + const defaultData = Switches.data() + expect(typeof defaultData.fields).toMatch('object') + expect(defaultData.checker).toMatch('yes') + }) + it('is Vue instance', () => { + const wrapper = mount(Switches) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Switches', () => { + const wrapper = mount(Switches) + expect(wrapper.is(Switches)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Switches) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Table.spec.js b/tests/unit/views/base/Table.spec.js new file mode 100644 index 00000000..860893dc --- /dev/null +++ b/tests/unit/views/base/Table.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { mount, shallowMount } from '@vue/test-utils'; +import CoreuiVue from '@coreui/vue' +import Table from '@/views/base/Table' + +Vue.use(CoreuiVue) + +describe('Table.vue', () => { + it('has a name', () => { + expect(Table.name).toMatch('TableWrapper') + }) + it('is Vue instance', () => { + const wrapper = mount(Table) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Table', () => { + const wrapper = mount(Table) + expect(wrapper.is(Table)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Table) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Tables.spec.js b/tests/unit/views/base/Tables.spec.js new file mode 100644 index 00000000..2325ee71 --- /dev/null +++ b/tests/unit/views/base/Tables.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { mount, shallowMount } from '@vue/test-utils'; +import CoreuiVue from '@coreui/vue' +import Tables from '@/views/base/Tables' + +Vue.use(CoreuiVue) + +describe('Tables.vue', () => { + it('has a name', () => { + expect(Tables.name).toMatch('tables') + }) + it('is Vue instance', () => { + const wrapper = mount(Tables) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Tables', () => { + const wrapper = mount(Tables) + expect(wrapper.is(Tables)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Tables) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Tabs.spec.js b/tests/unit/views/base/Tabs.spec.js new file mode 100644 index 00000000..df4ebbac --- /dev/null +++ b/tests/unit/views/base/Tabs.spec.js @@ -0,0 +1,30 @@ +import Vue from 'vue' +import { mount, shallowMount } from '@vue/test-utils'; +import CoreuiVue from '@coreui/vue' +import Tabs from '@/views/base/Tabs' + +Vue.use(CoreuiVue) + +describe('Tabs.vue', () => { + it('has a name', () => { + expect(Tabs.name).toMatch('tabs') + }) + it('has a created hook', () => { + expect(typeof Tabs.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof Tabs.data).toMatch('function') + }) + it('is Vue instance', () => { + const wrapper = mount(Tabs) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Tabs', () => { + const wrapper = mount(Tabs) + expect(wrapper.is(Tabs)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Tabs) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/Tooltips.spec.js b/tests/unit/views/base/Tooltips.spec.js new file mode 100644 index 00000000..3d5d6c93 --- /dev/null +++ b/tests/unit/views/base/Tooltips.spec.js @@ -0,0 +1,27 @@ +import Vue from 'vue' +import { shallowMount } from '@vue/test-utils'; +import CoreuiVue from '@coreui/vue' +import Tooltips from '@/views/base/Tooltips' + +Vue.use(CoreuiVue) + +describe('Tooltips.vue', () => { + it('has a name', () => { + expect(Tooltips.name).toMatch('tooltips') + }) + it('has a created hook', () => { + expect(typeof Tooltips.data).toMatch('function') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Tooltips) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Tooltips', () => { + const wrapper = shallowMount(Tooltips) + expect(wrapper.is(Tooltips)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Tooltips) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/base/__snapshots__/Breadcrumbs.spec.js.snap b/tests/unit/views/base/__snapshots__/Breadcrumbs.spec.js.snap new file mode 100644 index 00000000..52dd2baf --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Breadcrumbs.spec.js.snap @@ -0,0 +1,188 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Breadcrumbs.vue renders correctly 1`] = ` +
+
+
+
+
+ +
+ + + Bootstrap Breadcrumb + + + +
+ +
+ + +
    + + + +
+ +
    + + + + +
+ +
    + + + +
+
+ +
+
+
+
+
+`; diff --git a/tests/unit/views/base/__snapshots__/Cards.spec.js.snap b/tests/unit/views/base/__snapshots__/Cards.spec.js.snap new file mode 100644 index 00000000..d019d633 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Cards.spec.js.snap @@ -0,0 +1,865 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Cards.vue renders correctly 1`] = ` +
+
+
+
+ +
+ + Card title + + +
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. +
+
+ Card Footer +
+
+
+ +
+
+
+ + Card with icon +
+
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. +
+ +
+
+ +
+
+ +
+ + Card with switch + + +
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ + Card with label + + + Success + +
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ + Card with label + + + 42 + +
+ +
+ + +
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. +
+
+ +
+
+
+ +
+
+
+ +
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. +
+ +
+
+ +
+
+ +
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. +
+ +
+
+ +
+
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+
+ Card outline info +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+
+ Card outline warning +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+
+ Card outline danger +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+
+ +
+
+
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+
+ +
+
+
+ +
+ + +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. +

+ +
+ Someone famous in + + + Source Title + +
+
+
+ +
+
+ +
+
+ +
+ + +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. +

+ +
+ Someone famous in + + + Source Title + +
+
+
+ +
+
+ +
+
+ +
+ + +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. +

+ +
+ Someone famous in + + + Source Title + +
+
+
+ +
+
+ +
+
+ +
+ + +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. +

+ +
+ Someone famous in + + + Source Title + +
+
+
+ +
+
+ +
+
+ +
+ + +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. +

+ +
+ Someone famous in + + + Source Title + +
+
+
+ +
+
+ +
+
+ +
+ + +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. +

+ +
+ Someone famous in + + + Source Title + +
+
+
+ +
+
+
+ +
+
+
+
+ Card title +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+
+ Card title +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+
+ Card title +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+
+ Card title +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+
+ Card title +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+ +
+
+ +
+
+ +
+ + Card with header actions + +
+ + + + + + + + + + + +
+
+ +
+
+ + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. + +
+
+ +
+
+
+
+`; diff --git a/tests/unit/views/base/__snapshots__/Carousels.spec.js.snap b/tests/unit/views/base/__snapshots__/Carousels.spec.js.snap new file mode 100644 index 00000000..3692e5e6 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Carousels.spec.js.snap @@ -0,0 +1,161 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Carousels.vue renders correctly 1`] = ` +
+
+
+
+
+ +
+ + + + Bootstrap Carousel + + + +
+ +
+ + + +
+ +
+
+
+
+
+`; diff --git a/tests/unit/views/base/__snapshots__/Collapses.spec.js.snap b/tests/unit/views/base/__snapshots__/Collapses.spec.js.snap new file mode 100644 index 00000000..c44af2d6 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Collapses.spec.js.snap @@ -0,0 +1,128 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Collapses.vue renders correctly 1`] = ` +
+
+
+
+
+ +
+ + + + Bootstrap Collapse + + + +
+ +
+ + + + + +
+ +
+
+
+
+
+`; diff --git a/tests/unit/views/base/__snapshots__/Jumbotrons.spec.js.snap b/tests/unit/views/base/__snapshots__/Jumbotrons.spec.js.snap new file mode 100644 index 00000000..b80a6fa0 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Jumbotrons.spec.js.snap @@ -0,0 +1,224 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Jumbotrons.vue renders correctly 1`] = ` +
+
+ + + + + + + + Bootstrap Jumbotron + + + + + + + +

+ For more information visit website +

+ + + More Info + +
+
+
+
+ + + + + + + + Jumbotron + + + + with slots + + + + + +

+ + This is a simple hero unit, a simple jumbotron-style component for + calling extra attention to featured content or information. + +

+ +
+ +

+ + It uses utility classes for typography and spacing to space content + out within the larger container. + +

+ + + Do Something + + + + Do Something Else + +
+
+
+
+
+ + + + + + + + + Jumbotron + + + + variants + + + + + +

+ + This is a simple hero unit, a simple jumbotron-style component for + calling extra attention to featured content or information. + +

+ +
+ +

+ + It uses utility classes for typography and spacing to space content + out within the larger container. + +

+
+
+
+
+
+
+
+`; diff --git a/tests/unit/views/base/__snapshots__/ListGroups.spec.js.snap b/tests/unit/views/base/__snapshots__/ListGroups.spec.js.snap new file mode 100644 index 00000000..99e6dc23 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/ListGroups.spec.js.snap @@ -0,0 +1,1231 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ListGroups.vue renders correctly 1`] = ` +
+
+ + + + + + + + Bootstrap list group + + + + + + + + + Cras justo odio + + + + Dapibus ac facilisis in + + + + Morbi leo risus + + + + Porta ac consectetur ac + + + + Vestibulum at eros + + + + + + + + + + + + List group + + + active items + + + + + + + Cras justo odio + + + + Dapibus ac facilisis in + + + + Morbi leo risus + + + + Porta ac consectetur ac + + + + Vestibulum at eros + + + + + + + + + + + + + + + List group + + + + disabled items + + + + + + + Cras justo odio + + + + Dapibus ac facilisis in + + + + Morbi leo risus + + + + Porta ac consectetur ac + + + + Vestibulum at eros + + + + + + + + + + + + + List group + + + + actionable items + + + + + + + Awesome link + + + + Link with active state + + + + Action links are easy + + + + Disabled link + + + + + + + + + + + + + + + List group + + + + buttons + + + + + + + Button item + + + + I am a button + + + + Disabled button + + + + This is a button too + + + + + + + + + + + + + List group + + + + with badges + + + + + + + + Cras justo odio + + + 14 + + + + + + Dapibus ac facilisis in + + + 2 + + + + + + Morbi leo risus + + + 1 + + + + + + + + + + + + + + + + List group + + + + variants + + + + + + + This is a default list group item + + + + This is a primary list group item + + + + This is a secondary list group item + + + + This is a success list group item + + + + This is a danger list group item + + + + This is a warning list group item + + + + This is a info list group item + + + + This is a light list group item + + + + This is a dark list group item + + + + + + + + + + + + + List group + + + + variants active + + + + + + + This is a default list group item + + + + This is a primary list group item + + + + This is a secondary list group item + + + + This is a success list group item + + + + This is a danger list group item + + + + This is a warning list group item + + + + This is a info list group item + + + + This is a light list group item + + + + This is a dark list group item + + + + + + + + + + + + + + + List group + + + + inside cards + + + + + + Card with list group + subtitletag="h6" + titletag="h4" + > + + + Cras justo odio + + + + Dapibus ac facilisis in + + + + Vestibulum at eros + + + +

+ + Quis magna Lorem anim amet ipsum do mollit sit cillum voluptate ex + nulla tempor. Laborum consequat non elit enim exercitation cillum aliqua + consequat id aliqua. Esse ex consectetur mollit voluptate est in duis laboris + ad sit ipsum anim Lorem. + +

+
+ + Card with flush list group + subtitletag="h6" + titletag="h4" + > + + + Cras justo odio + + + + Dapibus ac facilisis in + + + + Vestibulum at eros + + + + + + Quis magna Lorem anim amet ipsum do mollit sit cillum voluptate ex + nulla tempor. Laborum consequat non elit enim exercitation cillum aliqua + consequat id aliqua. Esse ex consectetur mollit voluptate est in duis laboris + ad sit ipsum anim Lorem. + + + +
+
+
+
+
+ + + + + + + + List group + + + custom content + + + + + + +
+
+ List group item heading +
+ + + 3 days ago + +
+ +

+ + Donec id elit non mi porta gravida at eget metus. Maecenas + sed diam eget risus varius blandit. + +

+ + + Donec id elit non mi porta. + +
+ + +
+
+ List group item heading +
+ + + 3 days ago + +
+ +

+ + Donec id elit non mi porta gravida at eget metus. Maecenas + sed diam eget risus varius blandit. + +

+ + + Donec id elit non mi porta. + +
+ + +
+
+ Disabled List group item +
+ + + 3 days ago + +
+ +

+ + Donec id elit non mi porta gravida at eget metus. Maecenas + sed diam eget risus varius blandit. + +

+ + + Donec id elit non mi porta. + +
+
+
+
+
+
+
+
+`; diff --git a/tests/unit/views/base/__snapshots__/Navbars.spec.js.snap b/tests/unit/views/base/__snapshots__/Navbars.spec.js.snap new file mode 100644 index 00000000..f2539af1 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Navbars.spec.js.snap @@ -0,0 +1,572 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Navbars.vue renders correctly 1`] = ` +
+
+ + + + + + Bootstrap Navbar + + + + + + + + + + + NavBar + + + + + + Link + + + + Disabled + + + + + + + + + + Search + + + + + + + EN + + + + ES + + + + RU + + + + FA + + + + User + nav="true" + placement="bottom-end" + variant="primary" + > + + Profile + + + + Signout + + + + + + + + + + + + + + Navbar + + + + brand + + + + + + + CoreuiVue + + CoreuiVue + + + + + + + + + + + + Navbar + + + + text + + + + + + + + + CoreuiVue + + + + + + Navbar text + + + + + + + + + + + + + Navbar + + + + dropdown + + + + + + + + + + + Home + + + + Link + + + + + EN + + + + ES + + + + RU + + + + FA + + + + + + Account + + + + Settings + + + + + + + + + + + + + + Navbar + + + + form + + + + + + + + + + Search + + + + + + + + + + + + Navbar + + + + input group + + + + + + + + + + + +
+
+`; diff --git a/tests/unit/views/base/__snapshots__/Navs.spec.js.snap b/tests/unit/views/base/__snapshots__/Navs.spec.js.snap new file mode 100644 index 00000000..204a5c19 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Navs.spec.js.snap @@ -0,0 +1,705 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Navs.vue renders correctly 1`] = ` +
+
+ + + + + Bootstrap Navs + + + + + + + + + Active + + + + + + Another Link + + + + Disabled + + + + + + + + + + + Bootstrap Navs + + + + icons + + + + + + + + + + + + Link + + + + + + Another Link + + + + + Disabled + + + + + + + + + + + Bootstrap Navs + + + + tab style + + + + + + + + Active + + + + + + Link + + + + + + Another Link + + + + + Disabled + + + + + + + + + + + Bootstrap Navs + + + + pill style + + + + + + + Active + + + + Link + + + + Another Link + + + + Disabled + + + + + + + + + + + Bootstrap Navs + + + + fill tabs + + + + + + + Active + + + + Link + + + + Link with a long name + + + + Disabled + + + + + + + + + + + Bootstrap Navs + + + + justified tabs + + + + + + + Active + + + + Link + + + + Link with a long name + + + + Disabled + + + + + + + + + + + Bootstrap Navs + + + + dropdown support + + + + + + + Active + + + + Link + + + + + one + + + + two + + + + + + three + + + + + + + + + + + + Bootstrap Navs + + + + vertical variation + + + + + + + + + Active + + + + Link + + + + Another Link + + + + Disabled + + + + + + +
+
+`; diff --git a/tests/unit/views/base/__snapshots__/Paginations.spec.js.snap b/tests/unit/views/base/__snapshots__/Paginations.spec.js.snap new file mode 100644 index 00000000..9472665f --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Paginations.spec.js.snap @@ -0,0 +1,196 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Paginations.vue renders correctly 1`] = ` +
+
+ + + + + + Responsive bootstrap Pagination + + + + + + +
+ Default +
+ + + +
+ +
+ Small +
+ + + +
+ +
+
+ Large +
+ + + +
+
+ +
+ currentPage: 3 +
+
+
+ + + + + + + Pagination + + + + alignment + + + + +
+ Left alignment (default) +
+ + + +
+ +
+ Center alignment +
+ + + +
+ +
+ Right (end) alignment +
+ + + +
+ +
+ currentPage: 3 +
+
+
+
+
+`; diff --git a/tests/unit/views/base/__snapshots__/ProgressBars.spec.js.snap b/tests/unit/views/base/__snapshots__/ProgressBars.spec.js.snap new file mode 100644 index 00000000..096c349e --- /dev/null +++ b/tests/unit/views/base/__snapshots__/ProgressBars.spec.js.snap @@ -0,0 +1,803 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ProgressBars.vue renders correctly 1`] = ` +
+
+ + + + + + Bootstrap Progress + + + + + + + + + + + + + + + + + + + Click me to animate progress bars + + + + + + + + + + + Progress + + + labels + + + + +
+ No label +
+ + + +
+ Value label +
+ + + +
+ Progress label +
+ + + +
+ Value label with precision +
+ + + +
+ Progress label with precision +
+ + +
+
+ + + + + + + Progress + + + + width + + + + +
+ Default width +
+ + + +
+ Custom widths +
+ + + + + + +
+
+ + + + + + + Progress + + + + height + + + + +
+ Default height +
+ + + +
+ Custom heights +
+ + + + + + +
+
+ + + + + + + Progress + + + + variants + + + + +
+
+ success: +
+ +
+ +
+
+
+
+ info: +
+ +
+ +
+
+
+
+ warning: +
+ +
+ +
+
+
+
+ danger: +
+ +
+ +
+
+
+
+ primary: +
+ +
+ +
+
+
+
+ secondary: +
+ +
+ +
+
+
+
+ dark: +
+ +
+ +
+
+
+
+ + + + + + + Progress + + + + striped + + + + + + + + + + + + + + + Remove Striped + + + + + + + + + + + Progress + + + + animated + + + + + + + + + + + + + + + Stop Animation + + + + + + + + + + + Progress + + + + multiple bars + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+`; diff --git a/tests/unit/views/base/__snapshots__/Switches.spec.js.snap b/tests/unit/views/base/__snapshots__/Switches.spec.js.snap new file mode 100644 index 00000000..0c7ed954 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Switches.spec.js.snap @@ -0,0 +1,2824 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Switches.vue renders correctly 1`] = ` +
+ + + + + + Radio switches + + + primary + + + + + + + + + + + + + + + + + + + + + + + + + Switch default + + + yes + + + + + + + + + + + + + + + + + + + + + + + + Switch pills + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3d Switch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3d Switch + + + disabled + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3d Switch + + + outline="alt" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3d Switch + + + label + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3d Switch + + + outline="alt" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3d Switch + + + outline="alt" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + outline shape="pill" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + outline="alt" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + outline="alt" shape="pill" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label shape="pill" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label + + + + + + + + + + + + + + + + + + + + + + + + + shape + + + + + + + + Switch + + + label shape="pill" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Switch + + + label outline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sizes + + + + + + + + + +
+`; diff --git a/tests/unit/views/base/__snapshots__/Table.spec.js.snap b/tests/unit/views/base/__snapshots__/Table.spec.js.snap new file mode 100644 index 00000000..6c388b43 --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Table.spec.js.snap @@ -0,0 +1,17 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Table.vue renders correctly 1`] = ` + + + +`; diff --git a/tests/unit/views/base/__snapshots__/Tables.spec.js.snap b/tests/unit/views/base/__snapshots__/Tables.spec.js.snap new file mode 100644 index 00000000..2cf957be --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Tables.spec.js.snap @@ -0,0 +1,153 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Tables.vue renders correctly 1`] = ` +
+ + + + + + CTable component functionality presentation + + + + + + + + + + + + + + Simple Table + fields="username,registered,role,status" + items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" + /> + + + + Striped Table + fields="username,registered,role,status" + items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" + striped="true" + /> + + + + + + Condensed Table + fields="username,registered,role,status" + items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" + small="true" + /> + + + + Bordered Table + fields="username,registered,role,status" + fixed="true" + items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" + /> + + + + + + Combined All Table + fields="username,registered,role,status" + fixed="true" + hover="true" + items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" + small="true" + striped="true" + /> + + + + + + Combined All Table + dark="true" + fields="username,registered,role,status" + fixed="true" + hover="true" + items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" + small="true" + striped="true" + /> + + +
+`; diff --git a/tests/unit/views/base/__snapshots__/Tabs.spec.js.snap b/tests/unit/views/base/__snapshots__/Tabs.spec.js.snap new file mode 100644 index 00000000..449c46ee --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Tabs.spec.js.snap @@ -0,0 +1,318 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Tabs.vue renders correctly 1`] = ` +
+ + + + + + Tabs + + + + + + + + + 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + 3. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + + + + + + + Tabs + + + + + + + + 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + 3. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + + + + + + + Tabs with icons + + + + + + + + + 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + + 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + + 3. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + + + + + + + Tabs vertical + + + + + + + + + 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + + 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + + 3. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore + et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui + officia deserunt mollit anim id est laborum. + + + + + + + +
+`; diff --git a/tests/unit/views/base/__snapshots__/Tooltips.spec.js.snap b/tests/unit/views/base/__snapshots__/Tooltips.spec.js.snap new file mode 100644 index 00000000..9d64b59b --- /dev/null +++ b/tests/unit/views/base/__snapshots__/Tooltips.spec.js.snap @@ -0,0 +1,389 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Tooltips.vue renders correctly 1`] = ` +
+
+ + + + + + Bootstrap Tooltips + + + + + v-c-tooltip + + directive + + + + + + + + +
+ + + Hover Me + + +
+
+ + +
+ + + Hover me + + +
+
+ + +
+ + + Click me + + +
+
+
+
+
+ + + + + + + Tooltips + + + + placement + + + + +
+ + + + + top-start + + + + + + + top + + + + + + + top-end + + + + + + + bottom-start + + + + + + + bottom + + + + + + + bottom-end + + + + + + + right-start + + + + + + + right + + + + + + + right-end + + + + + + + left-start + + + + + + + left + + + + + + + left-end + + + + +
+
+
+
+
+`; diff --git a/tests/unit/views/buttons/BrandButtons.spec.js b/tests/unit/views/buttons/BrandButtons.spec.js new file mode 100644 index 00000000..652b129d --- /dev/null +++ b/tests/unit/views/buttons/BrandButtons.spec.js @@ -0,0 +1,28 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import BrandButtons from '@/views/buttons/BrandButtons' +import { CIconPlugin } from '@coreui/icons/vue' +import { iconsSet } from '@/assets/icons/icons.js' + + +Vue.use(CIconPlugin, iconsSet) +Vue.use(CoreuiVue) + +describe('BrandButtons.vue', () => { + it('has a name', () => { + expect(BrandButtons.name).toMatch('brand-buttons') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(BrandButtons) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is BrandButtons', () => { + const wrapper = shallowMount(BrandButtons) + expect(wrapper.is(BrandButtons)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = mount(BrandButtons) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/buttons/ButtonDropdowns.spec.js b/tests/unit/views/buttons/ButtonDropdowns.spec.js new file mode 100644 index 00000000..97172867 --- /dev/null +++ b/tests/unit/views/buttons/ButtonDropdowns.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Dropdowns from '@/views/buttons/Dropdowns' + +Vue.use(CoreuiVue) + +describe('Dropdowns.vue', () => { + it('has a name', () => { + expect(Dropdowns.name).toMatch('Dropdowns') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Dropdowns) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Dropdowns', () => { + const wrapper = shallowMount(Dropdowns) + expect(wrapper.is(Dropdowns)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = mount(Dropdowns) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/buttons/ButtonGroups.spec.js b/tests/unit/views/buttons/ButtonGroups.spec.js new file mode 100644 index 00000000..4bd52a19 --- /dev/null +++ b/tests/unit/views/buttons/ButtonGroups.spec.js @@ -0,0 +1,22 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import ButtonGroups from '@/views/buttons/ButtonGroups' + +Vue.use(CoreuiVue) + +describe('ButtonGroups.vue', () => { + const wrapper = shallowMount(ButtonGroups) + it('has a name', () => { + expect(ButtonGroups.name).toMatch('button-groups') + }) + it('is Vue instance', () => { + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is ButtonGroups', () => { + expect(wrapper.is(ButtonGroups)).toBe(true) + }) + test('renders correctly', () => { + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/buttons/StandardButtons.spec.js b/tests/unit/views/buttons/StandardButtons.spec.js new file mode 100644 index 00000000..76eb06cf --- /dev/null +++ b/tests/unit/views/buttons/StandardButtons.spec.js @@ -0,0 +1,32 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import StandardButtons from '@/views/buttons/StandardButtons' + +Vue.use(CoreuiVue) + +describe('StandardButtons.vue', () => { + it('has a name', () => { + expect(StandardButtons.name).toMatch('standard-buttons') + }) + it('has a created hook', () => { + expect(typeof StandardButtons.data).toMatch('function') + }) + it('sets the correct default data', () => { + expect(typeof StandardButtons.data).toMatch('function') + const defaultData = StandardButtons.data() + expect(defaultData.togglePress).toBe(false) + }) + it('is Vue instance', () => { + const wrapper = shallowMount(StandardButtons) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is StandardButtons', () => { + const wrapper = shallowMount(StandardButtons) + expect(wrapper.is(StandardButtons)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(StandardButtons) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/buttons/__snapshots__/BrandButtons.spec.js.snap b/tests/unit/views/buttons/__snapshots__/BrandButtons.spec.js.snap new file mode 100644 index 00000000..5c9b1e9f --- /dev/null +++ b/tests/unit/views/buttons/__snapshots__/BrandButtons.spec.js.snap @@ -0,0 +1,2449 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`BrandButtons.vue renders correctly 1`] = ` +
+
+
+
+ +
+ + Brand Button + + + +
+ +
+ + + + Usage + + + + + <CButton variant="facebook"><span>Facebook</span></CButton> + + + +
+ +
+ + Size Small + + + Add + + size="sm" + + +
+ +

+ + + + + + + + + + + + + + + + + +

+ +
+ Size Normal +
+ +

+ + + + + + + + + + + + + + + + + +

+ +
+ Size Large + + Add + + size="lg" + + +
+ +

+ + + + + + + + + + + + + + + + + +

+
+ +
+
+ +
+
+ +
+ + Brand Button + + + + Icons only + +
+ +
+ + + + Usage + + + + + {{ \` + + \` }} + + + +
+ +
+ Size Small + + Add + + size="sm" + + +
+ +

+ + + + + + + + + + + + + + + + + +

+ +
+ Size Normal +
+ +

+ + + + + + + + + + + + + + + + + +

+ +
+ Size Large + + Add + + size="lg" + + +
+ +

+ + + + + + + + + + + + + + + + + +

+
+ +
+
+ +
+
+ +
+ + Brand Button + + + + Text only + +
+ +
+ + + + Usage + + + + <CButton variant="facebook"><span>Facebook</span></CButton> + + +
+ +
+ Size Small + + Add + + size="sm" + + +
+ +

+ + + + + + + + + + + + + + + + + +

+ +
+ Size Normal +
+ +

+ + + + + + + + + + + + + + + + + +

+ +
+ Size Large + + Add + + size="lg" + + +
+ +

+ + + + + + + + + + + + + + + + + +

+
+ +
+
+
+
+`; diff --git a/tests/unit/views/buttons/__snapshots__/ButtonDropdowns.spec.js.snap b/tests/unit/views/buttons/__snapshots__/ButtonDropdowns.spec.js.snap new file mode 100644 index 00000000..f7b0f484 --- /dev/null +++ b/tests/unit/views/buttons/__snapshots__/ButtonDropdowns.spec.js.snap @@ -0,0 +1,1344 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Dropdowns.vue renders correctly 1`] = ` +
+
+
+
+
+ +
+ + + + Bootstrap Dropdown + + + +
+ +
+ + +
+ + +
+
+ + + +
+ +
+
+ + +
+
+ Dropdown header +
+ + + First item + + + + Second Item + +
+
+
+
+ +
+
+ +
+
+ +
+ + + + Dropdown + + + + positioning + +
+ + + +
+
+
+ +
+
+
+ +
+ + + + Dropdown + + + + hidden caret + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ + + + Dropdown + + + + sizing + +
+ + + +
+
+
+ +
+
+
+ +
+ + + + Dropdown + + + + headers and accessibility + +
+ +
+ + +
+
+ + + +
+
+ +
+
+ +
+
+ +
+ + + + Dropdown + + + + + variant + + +
+ + + +
+
+
+
+
+`; diff --git a/tests/unit/views/buttons/__snapshots__/ButtonGroups.spec.js.snap b/tests/unit/views/buttons/__snapshots__/ButtonGroups.spec.js.snap new file mode 100644 index 00000000..a9d5d669 --- /dev/null +++ b/tests/unit/views/buttons/__snapshots__/ButtonGroups.spec.js.snap @@ -0,0 +1,922 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ButtonGroups.vue renders correctly 1`] = ` +
+
+ + + + + + + + Bootstrap button group + + + + + + +
+ + + One + + + + Two + + + + Three + + + + Four + + + + Five + + + +
+
+ + + + Success + + + + Info + + + + Warn + + + + Primary + + + + Danger + + + + Link + + +
+
+
+
+ + + + + + + + Button group + + sizing + + + + +
+ + + Left + + + + Middle + + + + Right + + + +
+
+ + + + Left + + + + Middle + + + + Right + + + +
+
+ + + + Left + + + + Middle + + + + Right + + +
+
+
+
+ + + + + + + Button group + + dropdown support + + + + +
+ + + Button 1 + + + + Button 2 + + + + + Item 1 + + + + Item 2 + + + + + + Item 3 + + + + + Button 3 + + + + + Item 1 + + + + Item 2 + + + + + + Item 3 + + + +
+
+
+
+ + + + + + + + Button group + + vertical variation + + + + +
+ + + Top + + + + Middle + + + + Bottom + + +
+
+
+
+ + + + + + + + Button toolbar + + + + with button groups + + + + +
+ + + + « + + + + ‹ + + + + + + Edit + + + + Undo + + + + Redo + + + + + + › + + + + » + + + +
+ +
+ +
+ + + + New + + + + Edit + + + + + + + + + + Save + + + + Cancel + + + +
+ +
+ +
+ + + + New + + + + Edit + + + + Undo + + + + + + Item 1 + + + + Item 2 + + + + Item 3 + + + + + + Save + + + + Cancel + + + +
+
+
+
+
+
+
+`; diff --git a/tests/unit/views/buttons/__snapshots__/StandardButtons.spec.js.snap b/tests/unit/views/buttons/__snapshots__/StandardButtons.spec.js.snap new file mode 100644 index 00000000..7f73368f --- /dev/null +++ b/tests/unit/views/buttons/__snapshots__/StandardButtons.spec.js.snap @@ -0,0 +1,4425 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`StandardButtons.vue renders correctly 1`] = ` +
+ + + + Standard buttons + + + + + + + + + + Normal + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + + + + + + Active State + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + + + + + + Disabled + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + + + + + + + + Outline Buttons + + + + +

+ + Use + + outline + + prop + +

+ + + + + Normal + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + + + + + Active State + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + + + + + Disabled + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + +
+
+ + + + + Ghost Buttons + + + + +

+ + Use + + + ghost + + prop for ghost buttons. + +

+ + + + + Normal + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + + + + + Active State + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + + + + + Disabled + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + +
+
+ + + + + Square Buttons + + + + +

+ + Use + + + square + + prop for square buttons. + +

+ + + + + Normal + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + + + + + + Active State + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + + + + + + Disabled + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + +
+
+ + + + + Pill Buttons + + + + +

+ + Use + + + pill + + prop for pill buttons. + +

+ + + + + Normal + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + + + + + + Active State + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + + + + + + Disabled + + + + + + Primary + + + + + + Secondary + + + + + + Success + + + + + + Warning + + + + + + Danger + + + + + + Info + + + + + + Light + + + + + + Dark + + + + + + Link + + + +
+
+ + + + + Sizes + + + + +

+ Fancy larger or smaller buttons? Add + + size="lg" + + or + + size="sm" + + for additional sizes. +

+ + + + + Small + + + + + + Standard Button + + + + + + Outline Button + + + + + + Ghost Button + + + + + + Square Button + + + + + + Pill Button + + + + + + + + Normal + + + + + + Standard Button + + + + + + Outline Button + + + + + + Ghost Button + + + + + + Square Button + + + + + + Pill Button + + + + + + + + Large + + + + + + Standard Button + + + + + + Outline Button + + + + + + Ghost Button + + + + + + Square Button + + + + + + Pill Button + + + +
+
+ + + + + With Icons + + + + + + + + +  Standard Button + + + + + + + +  Outline Button + + + + + + + +  Ghost Button + + + + + + + +  Square Button + + + + + + + +  Pill Button + + + + + + + + + + + Toggle pressed state + + + + + + + + Primary Off + + + + + + Secondary Off + + + + + + Success Off + + + + + + Info Off + + + + + + Warning Off + + + + + + Danger Off + + + + + + + + + + + + Block Level CButtons + + + Add this + + block + + + + + + + Block level button + + + + Block level button + + + + Block level button + + + + Block level button + + + + Block level button + + + + Block level button + + + + Block level button + + + + + + + + + + Block Level CButtons + + + Add this + + block + + + + + + + Block level button + + + + Block level button + + + + Block level button + + + + Block level button + + + + Block level button + + + + Block level button + + + + Block level button + + + + + +
+`; diff --git a/tests/unit/views/icons/Brands.spec.js b/tests/unit/views/icons/Brands.spec.js new file mode 100644 index 00000000..5e91d0f8 --- /dev/null +++ b/tests/unit/views/icons/Brands.spec.js @@ -0,0 +1,26 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import Brands from '@/views/icons/Brands' +import { CIconPlugin } from '@coreui/icons/vue' + +Vue.use(CIconPlugin) +Vue.use(CoreuiVue) + +describe('Brands.vue', () => { + it('has a name', () => { + expect(Brands.name).toMatch('Brands') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Brands) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Brands', () => { + const wrapper = shallowMount(Brands) + expect(wrapper.is(Brands)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = mount(Brands) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/icons/CoreUIIcons.spec.js b/tests/unit/views/icons/CoreUIIcons.spec.js new file mode 100644 index 00000000..7db0a903 --- /dev/null +++ b/tests/unit/views/icons/CoreUIIcons.spec.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import CoreUIIcons from '@/views/icons/CoreUIIcons' + +Vue.use(CoreuiVue) + +describe('CoreUIIcons.vue', () => { + it('has a name', () => { + expect(CoreUIIcons.name).toMatch('CoreUIIcons') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(CoreUIIcons) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is CoreUIIcons', () => { + const wrapper = shallowMount(CoreUIIcons) + expect(wrapper.is(CoreUIIcons)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(CoreUIIcons) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/icons/Flags.spec.js b/tests/unit/views/icons/Flags.spec.js new file mode 100644 index 00000000..4dcedc94 --- /dev/null +++ b/tests/unit/views/icons/Flags.spec.js @@ -0,0 +1,26 @@ +import Vue from 'vue' +import { shallowMount, mount } from '@vue/test-utils' +import CoreuiVue from '@coreui/vue' +import { CIconPlugin } from '@coreui/icons/vue' +import Flags from '@/views/icons/Flags' + +Vue.use(CoreuiVue) +Vue.use(CIconPlugin) + +describe('Flags.vue', () => { + it('has a name', () => { + expect(Flags.name).toMatch('flags') + }) + it('is Vue instance', () => { + const wrapper = shallowMount(Flags) + expect(wrapper.isVueInstance()).toBe(true) + }) + it('is Flags', () => { + const wrapper = shallowMount(Flags) + expect(wrapper.is(Flags)).toBe(true) + }) + test('renders correctly', () => { + const wrapper = shallowMount(Flags) + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/unit/views/icons/__snapshots__/Brands.spec.js.snap b/tests/unit/views/icons/__snapshots__/Brands.spec.js.snap new file mode 100644 index 00000000..cbd35efc --- /dev/null +++ b/tests/unit/views/icons/__snapshots__/Brands.spec.js.snap @@ -0,0 +1,7737 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Brands.vue renders correctly 1`] = ` +
+
+ +
+ + Font Awesome brand icons + +
+ +
+ + +
+
+ + + + +
+ accessibleIcon +
+
+
+ + + + +
+ accusoft +
+
+
+ + + + +
+ acquisitionsIncorporated +
+
+
+ + + + +
+ adn +
+
+
+ + + + +
+ adobe +
+
+
+ + + + +
+ adversal +
+
+
+ + + + +
+ affiliatetheme +
+
+
+ + + + +
+ airbnb +
+
+
+ + + + +
+ algolia +
+
+
+ + + + +
+ alipay +
+
+
+ + + + +
+ amazonPay +
+
+
+ + + + +
+ amazon +
+
+
+ + + + +
+ amilia +
+
+
+ + + + +
+ android +
+
+
+ + + + +
+ angellist +
+
+
+ + + + +
+ angrycreative +
+
+
+ + + + +
+ angular +
+
+
+ + + + +
+ appStoreIos +
+
+
+ + + + +
+ appStore +
+
+
+ + + + +
+ apper +
+
+
+ + + + +
+ applePay +
+
+
+ + + + +
+ apple +
+
+
+ + + + +
+ artstation +
+
+
+ + + + +
+ asymmetrik +
+
+
+ + + + +
+ atlassian +
+
+
+ + + + +
+ audible +
+
+
+ + + + +
+ autoprefixer +
+
+
+ + + + +
+ avianex +
+
+
+ + + + +
+ aviato +
+
+
+ + + + +
+ aws +
+
+
+ + + + +
+ bandcamp +
+
+
+ + + + +
+ battleNet +
+
+
+ + + + +
+ behanceSquare +
+
+
+ + + + +
+ behance +
+
+
+ + + + +
+ bimobject +
+
+
+ + + + +
+ bitbucket +
+
+
+ + + + +
+ bitcoin +
+
+
+ + + + +
+ bity +
+
+
+ + + + +
+ blackTie +
+
+
+ + + + +
+ blackberry +
+
+
+ + + + +
+ bloggerB +
+
+
+ + + + +
+ blogger +
+
+
+ + + + +
+ bluetoothB +
+
+
+ + + + +
+ bluetooth +
+
+
+ + + + +
+ bootstrap +
+
+
+ + + + +
+ btc +
+
+
+ + + + +
+ buffer +
+
+
+ + + + +
+ buromobelexperte +
+
+
+ + + + +
+ buysellads +
+
+
+ + + + +
+ canadianMapleLeaf +
+
+
+ + + + +
+ ccAmazonPay +
+
+
+ + + + +
+ ccAmex +
+
+
+ + + + +
+ ccApplePay +
+
+
+ + + + +
+ ccDinersClub +
+
+
+ + + + +
+ ccDiscover +
+
+
+ + + + +
+ ccJcb +
+
+
+ + + + +
+ ccMastercard +
+
+
+ + + + +
+ ccPaypal +
+
+
+ + + + +
+ ccStripe +
+
+
+ + + + +
+ ccVisa +
+
+
+ + + + +
+ centercode +
+
+
+ + + + +
+ centos +
+
+
+ + + + +
+ chrome +
+
+
+ + + + +
+ chromecast +
+
+
+ + + + +
+ cloudscale +
+
+
+ + + + +
+ cloudsmith +
+
+
+ + + + +
+ cloudversify +
+
+
+ + + + +
+ codepen +
+
+
+ + + + +
+ codiepie +
+
+
+ + + + +
+ confluence +
+
+
+ + + + +
+ connectdevelop +
+
+
+ + + + +
+ contao +
+
+
+ + + + +
+ cpanel +
+
+
+ + + + +
+ creativeCommonsBy +
+
+
+ + + + +
+ creativeCommonsNcEu +
+
+
+ + + + +
+ creativeCommonsNcJp +
+
+
+ + + + +
+ creativeCommonsNc +
+
+
+ + + + +
+ creativeCommonsNd +
+
+
+ + + + +
+ creativeCommonsPdAlt +
+
+
+ + + + +
+ creativeCommonsPd +
+
+
+ + + + +
+ creativeCommonsRemix +
+
+
+ + + + +
+ creativeCommonsSa +
+
+
+ + + + +
+ creativeCommonsSamplingPlus +
+
+
+ + + + +
+ creativeCommonsSampling +
+
+
+ + + + +
+ creativeCommonsShare +
+
+
+ + + + +
+ creativeCommonsZero +
+
+
+ + + + +
+ creativeCommons +
+
+
+ + + + +
+ criticalRole +
+
+
+ + + + +
+ css3Alt +
+
+
+ + + + +
+ css3 +
+
+
+ + + + +
+ cuttlefish +
+
+
+ + + + +
+ dAndDBeyond +
+
+
+ + + + +
+ dAndD +
+
+
+ + + + +
+ dashcube +
+
+
+ + + + +
+ delicious +
+
+
+ + + + +
+ deploydog +
+
+
+ + + + +
+ deskpro +
+
+
+ + + + +
+ dev +
+
+
+ + + + +
+ deviantart +
+
+
+ + + + +
+ dhl +
+
+
+ + + + +
+ diaspora +
+
+
+ + + + +
+ digg +
+
+
+ + + + +
+ digitalOcean +
+
+
+ + + + +
+ discord +
+
+
+ + + + +
+ discourse +
+
+
+ + + + +
+ dochub +
+
+
+ + + + +
+ docker +
+
+
+ + + + +
+ draft2digital +
+
+
+ + + + +
+ dribbbleSquare +
+
+
+ + + + +
+ dribbble +
+
+
+ + + + +
+ dropbox +
+
+
+ + + + +
+ drupal +
+
+
+ + + + +
+ dyalog +
+
+
+ + + + +
+ earlybirds +
+
+
+ + + + +
+ ebay +
+
+
+ + + + +
+ edge +
+
+
+ + + + +
+ elementor +
+
+
+ + + + +
+ ello +
+
+
+ + + + +
+ ember +
+
+
+ + + + +
+ empire +
+
+
+ + + + +
+ envira +
+
+
+ + + + +
+ erlang +
+
+
+ + + + +
+ ethereum +
+
+
+ + + + +
+ etsy +
+
+
+ + + + +
+ evernote +
+
+
+ + + + +
+ expeditedssl +
+
+
+ + + + +
+ facebookF +
+
+
+ + + + +
+ facebookMessenger +
+
+
+ + + + +
+ facebookSquare +
+
+
+ + + + +
+ facebook +
+
+
+ + + + +
+ fantasyFlightGames +
+
+
+ + + + +
+ fedex +
+
+
+ + + + +
+ fedora +
+
+
+ + + + +
+ figma +
+
+
+ + + + +
+ firefox +
+
+
+ + + + +
+ firstOrderAlt +
+
+
+ + + + +
+ firstOrder +
+
+
+ + + + +
+ firstdraft +
+
+
+ + + + +
+ flickr +
+
+
+ + + + +
+ flipboard +
+
+
+ + + + +
+ fly +
+
+
+ + + + +
+ fontAwesomeAlt +
+
+
+ + + + +
+ fontAwesomeFlag +
+
+
+ + + + +
+ fontAwesomeLogoFull +
+
+
+ + + + +
+ fontAwesome +
+
+
+ + + + +
+ fonticonsFi +
+
+
+ + + + +
+ fonticons +
+
+
+ + + + +
+ fortAwesomeAlt +
+
+
+ + + + +
+ fortAwesome +
+
+
+ + + + +
+ forumbee +
+
+
+ + + + +
+ foursquare +
+
+
+ + + + +
+ freeCodeCamp +
+
+
+ + + + +
+ freebsd +
+
+
+ + + + +
+ fulcrum +
+
+
+ + + + +
+ galacticRepublic +
+
+
+ + + + +
+ galacticSenate +
+
+
+ + + + +
+ getPocket +
+
+
+ + + + +
+ ggCircle +
+
+
+ + + + +
+ gg +
+
+
+ + + + +
+ gitAlt +
+
+
+ + + + +
+ gitSquare +
+
+
+ + + + +
+ git +
+
+
+ + + + +
+ githubAlt +
+
+
+ + + + +
+ githubSquare +
+
+
+ + + + +
+ github +
+
+
+ + + + +
+ gitkraken +
+
+
+ + + + +
+ gitlab +
+
+
+ + + + +
+ gitter +
+
+
+ + + + +
+ glideG +
+
+
+ + + + +
+ glide +
+
+
+ + + + +
+ gofore +
+
+
+ + + + +
+ goodreadsG +
+
+
+ + + + +
+ goodreads +
+
+
+ + + + +
+ googleDrive +
+
+
+ + + + +
+ googlePlay +
+
+
+ + + + +
+ googlePlusG +
+
+
+ + + + +
+ googlePlusSquare +
+
+
+ + + + +
+ googlePlus +
+
+
+ + + + +
+ googleWallet +
+
+
+ + + + +
+ google +
+
+
+ + + + +
+ gratipay +
+
+
+ + + + +
+ grav +
+
+
+ + + + +
+ gripfire +
+
+
+ + + + +
+ grunt +
+
+
+ + + + +
+ gulp +
+
+
+ + + + +
+ hackerNewsSquare +
+
+
+ + + + +
+ hackerNews +
+
+
+ + + + +
+ hackerrank +
+
+
+ + + + +
+ hips +
+
+
+ + + + +
+ hireAHelper +
+
+
+ + + + +
+ hooli +
+
+
+ + + + +
+ hornbill +
+
+
+ + + + +
+ hotjar +
+
+
+ + + + +
+ houzz +
+
+
+ + + + +
+ html5 +
+
+
+ + + + +
+ hubspot +
+
+
+ + + + +
+ imdb +
+
+
+ + + + +
+ instagram +
+
+
+ + + + +
+ intercom +
+
+
+ + + + +
+ internetExplorer +
+
+
+ + + + +
+ invision +
+
+
+ + + + +
+ ioxhost +
+
+
+ + + + +
+ itchIo +
+
+
+ + + + +
+ itunesNote +
+
+
+ + + + +
+ java +
+
+
+ + + + +
+ itunes +
+
+
+ + + + +
+ jediOrder +
+
+
+ + + + +
+ jenkins +
+
+
+ + + + +
+ jira +
+
+
+ + + + +
+ joget +
+
+
+ + + + +
+ joomla +
+
+
+ + + + +
+ jsSquare +
+
+
+ + + + +
+ js +
+
+
+ + + + +
+ jsfiddle +
+
+
+ + + + +
+ kaggle +
+
+
+ + + + +
+ keybase +
+
+
+ + + + +
+ keycdn +
+
+
+ + + + +
+ kickstarterK +
+
+
+ + + + +
+ kickstarter +
+
+
+ + + + +
+ korvue +
+
+
+ + + + +
+ laravel +
+
+
+ + + + +
+ lastfmSquare +
+
+
+ + + + +
+ lastfm +
+
+
+ + + + +
+ leanpub +
+
+
+ + + + +
+ less +
+
+
+ + + + +
+ line +
+
+
+ + + + +
+ linkedinIn +
+
+
+ + + + +
+ linkedin +
+
+
+ + + + +
+ linode +
+
+
+ + + + +
+ linux +
+
+
+ + + + +
+ lyft +
+
+
+ + + + +
+ magento +
+
+
+ + + + +
+ mailchimp +
+
+
+ + + + +
+ mandalorian +
+
+
+ + + + +
+ markdown +
+
+
+ + + + +
+ mastodon +
+
+
+ + + + +
+ maxcdn +
+
+
+ + + + +
+ medapps +
+
+
+ + + + +
+ mediumM +
+
+
+ + + + +
+ medium +
+
+
+ + + + +
+ medrt +
+
+
+ + + + +
+ meetup +
+
+
+ + + + +
+ megaport +
+
+
+ + + + +
+ mendeley +
+
+
+ + + + +
+ microsoft +
+
+
+ + + + +
+ mix +
+
+
+ + + + +
+ mixcloud +
+
+
+ + + + +
+ mizuni +
+
+
+ + + + +
+ modx +
+
+
+ + + + +
+ monero +
+
+
+ + + + +
+ napster +
+
+
+ + + + +
+ neos +
+
+
+ + + + +
+ nimblr +
+
+
+ + + + +
+ nintendoSwitch +
+
+
+ + + + +
+ nodeJs +
+
+
+ + + + +
+ node +
+
+
+ + + + +
+ npm +
+
+
+ + + + +
+ ns8 +
+
+
+ + + + +
+ nutritionix +
+
+
+ + + + +
+ odnoklassnikiSquare +
+
+
+ + + + +
+ odnoklassniki +
+
+
+ + + + +
+ oldRepublic +
+
+
+ + + + +
+ opencart +
+
+
+ + + + +
+ openid +
+
+
+ + + + +
+ opera +
+
+
+ + + + +
+ optinMonster +
+
+
+ + + + +
+ osi +
+
+
+ + + + +
+ page4 +
+
+
+ + + + +
+ pagelines +
+
+
+ + + + +
+ palfed +
+
+
+ + + + +
+ patreon +
+
+
+ + + + +
+ paypal +
+
+
+ + + + +
+ pennyArcade +
+
+
+ + + + +
+ periscope +
+
+
+ + + + +
+ phabricator +
+
+
+ + + + +
+ phoenixFramework +
+
+
+ + + + +
+ phoenixSquadron +
+
+
+ + + + +
+ php +
+
+
+ + + + +
+ piedPiperAlt +
+
+
+ + + + +
+ piedPiperHat +
+
+
+ + + + +
+ piedPiperPp +
+
+
+ + + + +
+ piedPiper +
+
+
+ + + + +
+ pinterestP +
+
+
+ + + + +
+ pinterestSquare +
+
+
+ + + + +
+ pinterest +
+
+
+ + + + +
+ playstation +
+
+
+ + + + +
+ productHunt +
+
+
+ + + + +
+ pushed +
+
+
+ + + + +
+ python +
+
+
+ + + + +
+ qq +
+
+
+ + + + +
+ quinscape +
+
+
+ + + + +
+ quora +
+
+
+ + + + +
+ rProject +
+
+
+ + + + +
+ raspberryPi +
+
+
+ + + + +
+ ravelry +
+
+
+ + + + +
+ react +
+
+
+ + + + +
+ reacteurope +
+
+
+ + + + +
+ readme +
+
+
+ + + + +
+ rebel +
+
+
+ + + + +
+ redRiver +
+
+
+ + + + +
+ redditAlien +
+
+
+ + + + +
+ redditSquare +
+
+
+ + + + +
+ reddit +
+
+
+ + + + +
+ redhat +
+
+
+ + + + +
+ renren +
+
+
+ + + + +
+ replyd +
+
+
+ + + + +
+ researchgate +
+
+
+ + + + +
+ resolving +
+
+
+ + + + +
+ rev +
+
+
+ + + + +
+ rocketchat +
+
+
+ + + + +
+ rockrms +
+
+
+ + + + +
+ safari +
+
+
+ + + + +
+ salesforce +
+
+
+ + + + +
+ sass +
+
+
+ + + + +
+ schlix +
+
+
+ + + + +
+ scribd +
+
+
+ + + + +
+ searchengin +
+
+
+ + + + +
+ sellcast +
+
+
+ + + + +
+ sellsy +
+
+
+ + + + +
+ servicestack +
+
+
+ + + + +
+ shirtsinbulk +
+
+
+ + + + +
+ shopware +
+
+
+ + + + +
+ simplybuilt +
+
+
+ + + + +
+ sistrix +
+
+
+ + + + +
+ sith +
+
+
+ + + + +
+ sketch +
+
+
+ + + + +
+ skyatlas +
+
+
+ + + + +
+ skype +
+
+
+ + + + +
+ slackHash +
+
+
+ + + + +
+ slack +
+
+
+ + + + +
+ slideshare +
+
+
+ + + + +
+ snapchatGhost +
+
+
+ + + + +
+ snapchatSquare +
+
+
+ + + + +
+ snapchat +
+
+
+ + + + +
+ soundcloud +
+
+
+ + + + +
+ sourcetree +
+
+
+ + + + +
+ speakap +
+
+
+ + + + +
+ speakerDeck +
+
+
+ + + + +
+ spotify +
+
+
+ + + + +
+ squarespace +
+
+
+ + + + +
+ stackExchange +
+
+
+ + + + +
+ stackOverflow +
+
+
+ + + + +
+ stackpath +
+
+
+ + + + +
+ staylinked +
+
+
+ + + + +
+ steamSquare +
+
+
+ + + + +
+ steamSymbol +
+
+
+ + + + +
+ steam +
+
+
+ + + + +
+ stickerMule +
+
+
+ + + + +
+ strava +
+
+
+ + + + +
+ stripeS +
+
+
+ + + + +
+ stripe +
+
+
+ + + + +
+ studiovinari +
+
+
+ + + + +
+ stumbleuponCircle +
+
+
+ + + + +
+ stumbleupon +
+
+
+ + + + +
+ superpowers +
+
+
+ + + + +
+ supple +
+
+
+ + + + +
+ suse +
+
+
+ + + + +
+ symfony +
+
+
+ + + + +
+ teamspeak +
+
+
+ + + + +
+ telegramPlane +
+
+
+ + + + +
+ telegram +
+
+
+ + + + +
+ tencentWeibo +
+
+
+ + + + +
+ theRedYeti +
+
+
+ + + + +
+ themeco +
+
+
+ + + + +
+ themeisle +
+
+
+ + + + +
+ thinkPeaks +
+
+
+ + + + +
+ tradeFederation +
+
+
+ + + + +
+ trello +
+
+
+ + + + +
+ tripadvisor +
+
+
+ + + + +
+ tumblrSquare +
+
+
+ + + + +
+ tumblr +
+
+
+ + + + +
+ twitch +
+
+
+ + + + +
+ twitterSquare +
+
+
+ + + + +
+ twitter +
+
+
+ + + + +
+ typo3 +
+
+
+ + + + +
+ uber +
+
+
+ + + + +
+ ubuntu +
+
+
+ + + + +
+ uikit +
+
+
+ + + + +
+ uniregistry +
+
+
+ + + + +
+ untappd +
+
+
+ + + + +
+ ups +
+
+
+ + + + +
+ usps +
+
+
+ + + + +
+ usb +
+
+
+ + + + +
+ ussunnah +
+
+
+ + + + +
+ vaadin +
+
+
+ + + + +
+ viacoin +
+
+
+ + + + +
+ viadeoSquare +
+
+
+ + + + +
+ viadeo +
+
+
+ + + + +
+ viber +
+
+
+ + + + +
+ vimeoSquare +
+
+
+ + + + +
+ vimeoV +
+
+
+ + + + +
+ vimeo +
+
+
+ + + + +
+ vine +
+
+
+ + + + +
+ vk +
+
+
+ + + + +
+ vnv +
+
+
+ + + + +
+ vuejs +
+
+
+ + + + +
+ waze +
+
+
+ + + + +
+ weebly +
+
+
+ + + + +
+ weibo +
+
+
+ + + + +
+ weixin +
+
+
+ + + + +
+ whatsappSquare +
+
+
+ + + + +
+ whatsapp +
+
+
+ + + + +
+ whmcs +
+
+
+ + + + +
+ wikipediaW +
+
+
+ + + + +
+ windows +
+
+
+ + + + +
+ wix +
+
+
+ + + + +
+ wizardsOfTheCoast +
+
+
+ + + + +
+ wolfPackBattalion +
+
+
+ + + + +
+ wordpressSimple +
+
+
+ + + + +
+ wordpress +
+
+
+ + + + +
+ wpbeginner +
+
+
+ + + + +
+ wpexplorer +
+
+
+ + + + +
+ wpforms +
+
+
+ + + + +
+ wpressr +
+
+
+ + + + +
+ xbox +
+
+
+ + + + +
+ xingSquare +
+
+
+ + + + +
+ xing +
+
+
+ + + + +
+ yCombinator +
+
+
+ + + + +
+ yahoo +
+
+
+ + + + +
+ yammer +
+
+
+ + + + +
+ yandexInternational +
+
+
+ + + + +
+ yandex +
+
+
+ + + + +
+ yarn +
+
+
+ + + + +
+ yelp +
+
+
+ + + + +
+ yoast +
+
+
+ + + + +
+ youtubeSquare +
+
+
+ + + + +
+ youtube +
+
+
+ + + + +
+ zhihu +
+
+
+
+ +
+
+`; diff --git a/tests/unit/views/icons/__snapshots__/CoreUIIcons.spec.js.snap b/tests/unit/views/icons/__snapshots__/CoreUIIcons.spec.js.snap new file mode 100644 index 00000000..fef187cd --- /dev/null +++ b/tests/unit/views/icons/__snapshots__/CoreUIIcons.spec.js.snap @@ -0,0 +1,1658 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`CoreUIIcons.vue renders correctly 1`] = ` +
+ + + + CoreUI Icons + + + New + + + + + + + + +