test: update tests
This commit is contained in:
@@ -19,13 +19,13 @@ describe('App.vue', () => {
|
|||||||
localVue,
|
localVue,
|
||||||
router
|
router
|
||||||
})
|
})
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is App', () => {
|
it('is App', () => {
|
||||||
const wrapper = shallowMount(App, {
|
const wrapper = shallowMount(App, {
|
||||||
localVue,
|
localVue,
|
||||||
router
|
router
|
||||||
})
|
})
|
||||||
expect(wrapper.is(App)).toBe(true)
|
expect(wrapper.findComponent(App)).toBeTruthy()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -37,6 +37,6 @@ describe('TheContainer.vue', () => {
|
|||||||
localVue,
|
localVue,
|
||||||
router
|
router
|
||||||
})
|
})
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ describe('Dashboard.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Dashboard)
|
const wrapper = shallowMount(Dashboard)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Dashboard', () => {
|
it('is Dashboard', () => {
|
||||||
const wrapper = shallowMount(Dashboard)
|
const wrapper = shallowMount(Dashboard)
|
||||||
expect(wrapper.is(Dashboard)).toBe(true)
|
expect(wrapper.findComponent(Dashboard)).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('should render correct content', () => {
|
it('should render correct content', () => {
|
||||||
const wrapper = shallowMount(Dashboard)
|
const wrapper = shallowMount(Dashboard)
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ describe('Breadcrumbs.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Breadcrumbs)
|
const wrapper = shallowMount(Breadcrumbs)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Breadcrumbs', () => {
|
it('is Breadcrumbs', () => {
|
||||||
const wrapper = shallowMount(Breadcrumbs)
|
const wrapper = shallowMount(Breadcrumbs)
|
||||||
expect(wrapper.is(Breadcrumbs)).toBe(true)
|
expect(wrapper.findComponent(Breadcrumbs)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = mount(Breadcrumbs)
|
const wrapper = mount(Breadcrumbs)
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ describe('Cards.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Cards)
|
const wrapper = shallowMount(Cards)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Cards', () => {
|
it('is Cards', () => {
|
||||||
const wrapper = shallowMount(Cards)
|
const wrapper = shallowMount(Cards)
|
||||||
expect(wrapper.is(Cards)).toBe(true)
|
expect(wrapper.findComponent(Cards)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = mount(Cards)
|
const wrapper = mount(Cards)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ describe('Carousels.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Carousels', () => {
|
it('is Carousels', () => {
|
||||||
const wrapper = shallowMount(Carousels)
|
const wrapper = shallowMount(Carousels)
|
||||||
expect(wrapper.is(Carousels)).toBe(true)
|
expect(wrapper.findComponent(Carousels)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = mount(Carousels)
|
const wrapper = mount(Carousels)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ describe('Collapses.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Collapses)
|
const wrapper = shallowMount(Collapses)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = mount(Collapses)
|
const wrapper = mount(Collapses)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ describe('Forms.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Forms', () => {
|
it('is Forms', () => {
|
||||||
const wrapper = shallowMount(Forms)
|
const wrapper = shallowMount(Forms)
|
||||||
expect(wrapper.is(Forms)).toBe(true)
|
expect(wrapper.findComponent(Forms)).toBeTruthy()
|
||||||
})
|
})
|
||||||
// render random chackboxes
|
// render random chackboxes
|
||||||
// test('renders correctly', () => {
|
// test('renders correctly', () => {
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Jumbotrons.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Jumbotrons)
|
const wrapper = shallowMount(Jumbotrons)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Jumbotrons', () => {
|
it('is Jumbotrons', () => {
|
||||||
const wrapper = shallowMount(Jumbotrons)
|
const wrapper = shallowMount(Jumbotrons)
|
||||||
expect(wrapper.is(Jumbotrons)).toBe(true)
|
expect(wrapper.findComponent(Jumbotrons)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Jumbotrons)
|
const wrapper = shallowMount(Jumbotrons)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('ListGroups.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(ListGroups)
|
const wrapper = shallowMount(ListGroups)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is ListGroups', () => {
|
it('is ListGroups', () => {
|
||||||
const wrapper = shallowMount(ListGroups)
|
const wrapper = shallowMount(ListGroups)
|
||||||
expect(wrapper.is(ListGroups)).toBe(true)
|
expect(wrapper.findComponent(ListGroups)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(ListGroups)
|
const wrapper = shallowMount(ListGroups)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Navbars.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Navbars)
|
const wrapper = shallowMount(Navbars)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Navbars', () => {
|
it('is Navbars', () => {
|
||||||
const wrapper = shallowMount(Navbars)
|
const wrapper = shallowMount(Navbars)
|
||||||
expect(wrapper.is(Navbars)).toBe(true)
|
expect(wrapper.findComponent(Navbars)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Navbars)
|
const wrapper = shallowMount(Navbars)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Navs.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Navs)
|
const wrapper = shallowMount(Navs)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Navbars', () => {
|
it('is Navbars', () => {
|
||||||
const wrapper = shallowMount(Navs)
|
const wrapper = shallowMount(Navs)
|
||||||
expect(wrapper.is(Navs)).toBe(true)
|
expect(wrapper.findComponent(Navs)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Navs)
|
const wrapper = shallowMount(Navs)
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ describe('Paginations.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Paginations)
|
const wrapper = shallowMount(Paginations)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Paginations', () => {
|
it('is Paginations', () => {
|
||||||
const wrapper = shallowMount(Paginations)
|
const wrapper = shallowMount(Paginations)
|
||||||
expect(wrapper.is(Paginations)).toBe(true)
|
expect(wrapper.findComponent(Paginations)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Paginations)
|
const wrapper = shallowMount(Paginations)
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ describe('Popovers.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Popovers)
|
const wrapper = shallowMount(Popovers)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Popovers', () => {
|
it('is Popovers', () => {
|
||||||
const wrapper = shallowMount(Popovers)
|
const wrapper = shallowMount(Popovers)
|
||||||
expect(wrapper.is(Popovers)).toBe(true)
|
expect(wrapper.findComponent(Popovers)).toBeTruthy()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ describe('ProgressBars.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = mount(ProgressBars)
|
const wrapper = mount(ProgressBars)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is ProgressBars', () => {
|
it('is ProgressBars', () => {
|
||||||
const wrapper = mount(ProgressBars)
|
const wrapper = mount(ProgressBars)
|
||||||
expect(wrapper.is(ProgressBars)).toBe(true)
|
expect(wrapper.findComponent(ProgressBars)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(ProgressBars)
|
const wrapper = shallowMount(ProgressBars)
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ describe('Switches.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = mount(Switches)
|
const wrapper = mount(Switches)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Switches', () => {
|
it('is Switches', () => {
|
||||||
const wrapper = mount(Switches)
|
const wrapper = mount(Switches)
|
||||||
expect(wrapper.is(Switches)).toBe(true)
|
expect(wrapper.findComponent(Switches)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Switches)
|
const wrapper = shallowMount(Switches)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Table.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = mount(Table)
|
const wrapper = mount(Table)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Table', () => {
|
it('is Table', () => {
|
||||||
const wrapper = mount(Table)
|
const wrapper = mount(Table)
|
||||||
expect(wrapper.is(Table)).toBe(true)
|
expect(wrapper.findComponent(Table)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Table)
|
const wrapper = shallowMount(Table)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Tables.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = mount(Tables)
|
const wrapper = mount(Tables)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Tables', () => {
|
it('is Tables', () => {
|
||||||
const wrapper = mount(Tables)
|
const wrapper = mount(Tables)
|
||||||
expect(wrapper.is(Tables)).toBe(true)
|
expect(wrapper.findComponent(Tables)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Tables)
|
const wrapper = shallowMount(Tables)
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ describe('Tabs.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = mount(Tabs)
|
const wrapper = mount(Tabs)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Tabs', () => {
|
it('is Tabs', () => {
|
||||||
const wrapper = mount(Tabs)
|
const wrapper = mount(Tabs)
|
||||||
expect(wrapper.is(Tabs)).toBe(true)
|
expect(wrapper.findComponent(Tabs)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Tabs)
|
const wrapper = shallowMount(Tabs)
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ describe('Tooltips.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Tooltips)
|
const wrapper = shallowMount(Tooltips)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Tooltips', () => {
|
it('is Tooltips', () => {
|
||||||
const wrapper = shallowMount(Tooltips)
|
const wrapper = shallowMount(Tooltips)
|
||||||
expect(wrapper.is(Tooltips)).toBe(true)
|
expect(wrapper.findComponent(Tooltips)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Tooltips)
|
const wrapper = shallowMount(Tooltips)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('BrandButtons.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(BrandButtons)
|
const wrapper = shallowMount(BrandButtons)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is BrandButtons', () => {
|
it('is BrandButtons', () => {
|
||||||
const wrapper = shallowMount(BrandButtons)
|
const wrapper = shallowMount(BrandButtons)
|
||||||
expect(wrapper.is(BrandButtons)).toBe(true)
|
expect(wrapper.findComponent(BrandButtons)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = mount(BrandButtons)
|
const wrapper = mount(BrandButtons)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Dropdowns.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Dropdowns)
|
const wrapper = shallowMount(Dropdowns)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Dropdowns', () => {
|
it('is Dropdowns', () => {
|
||||||
const wrapper = shallowMount(Dropdowns)
|
const wrapper = shallowMount(Dropdowns)
|
||||||
expect(wrapper.is(Dropdowns)).toBe(true)
|
expect(wrapper.findComponent(Dropdowns)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = mount(Dropdowns)
|
const wrapper = mount(Dropdowns)
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ describe('ButtonGroups.vue', () => {
|
|||||||
expect(ButtonGroups.name).toBe('ButtonGroups')
|
expect(ButtonGroups.name).toBe('ButtonGroups')
|
||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is ButtonGroups', () => {
|
it('is ButtonGroups', () => {
|
||||||
expect(wrapper.is(ButtonGroups)).toBe(true)
|
expect(wrapper.findComponent(ButtonGroups)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
expect(wrapper.element).toMatchSnapshot()
|
expect(wrapper.element).toMatchSnapshot()
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ describe('StandardButtons.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(StandardButtons)
|
const wrapper = shallowMount(StandardButtons)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is StandardButtons', () => {
|
it('is StandardButtons', () => {
|
||||||
const wrapper = shallowMount(StandardButtons)
|
const wrapper = shallowMount(StandardButtons)
|
||||||
expect(wrapper.is(StandardButtons)).toBe(true)
|
expect(wrapper.findComponent(StandardButtons)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(StandardButtons)
|
const wrapper = shallowMount(StandardButtons)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('CChartBarExample', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(CChartBarExample)
|
const wrapper = shallowMount(CChartBarExample)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is CChartBarExample', () => {
|
it('is CChartBarExample', () => {
|
||||||
const wrapper = shallowMount(CChartBarExample)
|
const wrapper = shallowMount(CChartBarExample)
|
||||||
expect(wrapper.is(CChartBarExample)).toBe(true)
|
expect(wrapper.findComponent(CChartBarExample)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(CChartBarExample)
|
const wrapper = shallowMount(CChartBarExample)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Charts.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Charts)
|
const wrapper = shallowMount(Charts)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Charts', () => {
|
it('is Charts', () => {
|
||||||
const wrapper = shallowMount(Charts)
|
const wrapper = shallowMount(Charts)
|
||||||
expect(wrapper.is(Charts)).toBe(true)
|
expect(wrapper.findComponent(Charts)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Charts)
|
const wrapper = shallowMount(Charts)
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ describe('Brands.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Brands)
|
const wrapper = shallowMount(Brands)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Brands', () => {
|
it('is Brands', () => {
|
||||||
const wrapper = shallowMount(Brands)
|
const wrapper = shallowMount(Brands)
|
||||||
expect(wrapper.is(Brands)).toBe(true)
|
expect(wrapper.findComponent(Brands)).toBeTruthy()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ describe('CoreUIIcons.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(CoreUIIcons)
|
const wrapper = shallowMount(CoreUIIcons)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is CoreUIIcons', () => {
|
it('is CoreUIIcons', () => {
|
||||||
const wrapper = shallowMount(CoreUIIcons)
|
const wrapper = shallowMount(CoreUIIcons)
|
||||||
expect(wrapper.is(CoreUIIcons)).toBe(true)
|
expect(wrapper.findComponent(CoreUIIcons)).toBeTruthy()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ describe('Flags.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Flags)
|
const wrapper = shallowMount(Flags)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Flags', () => {
|
it('is Flags', () => {
|
||||||
const wrapper = shallowMount(Flags)
|
const wrapper = shallowMount(Flags)
|
||||||
expect(wrapper.is(Flags)).toBe(true)
|
expect(wrapper.findComponent(Flags)).toBeTruthy()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ describe('Alerts.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Alerts)
|
const wrapper = shallowMount(Alerts)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Alerts', () => {
|
it('is Alerts', () => {
|
||||||
const wrapper = shallowMount(Alerts)
|
const wrapper = shallowMount(Alerts)
|
||||||
expect(wrapper.is(Alerts)).toBe(true)
|
expect(wrapper.findComponent(Alerts)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Alerts)
|
const wrapper = shallowMount(Alerts)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { shallowMount, mount } from '@vue/test-utils'
|
import { mount } from '@vue/test-utils'
|
||||||
import CoreuiVue from '@coreui/vue'
|
import CoreuiVue from '@coreui/vue'
|
||||||
import Badges from '@/views/notifications/Badges'
|
import Badges from '@/views/notifications/Badges'
|
||||||
|
|
||||||
@@ -9,10 +9,6 @@ describe('Badges.vue', () => {
|
|||||||
it('has a name', () => {
|
it('has a name', () => {
|
||||||
expect(Badges.name).toBe('Badges')
|
expect(Badges.name).toBe('Badges')
|
||||||
})
|
})
|
||||||
it('is Badges', () => {
|
|
||||||
const wrapper = shallowMount(Badges)
|
|
||||||
expect(wrapper.is(Badges)).toBe(true)
|
|
||||||
})
|
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = mount(Badges)
|
const wrapper = mount(Badges)
|
||||||
expect(wrapper.element).toMatchSnapshot()
|
expect(wrapper.element).toMatchSnapshot()
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ describe('Modals.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Modals)
|
const wrapper = shallowMount(Modals)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Modals', () => {
|
it('is Modals', () => {
|
||||||
const wrapper = shallowMount(Modals)
|
const wrapper = shallowMount(Modals)
|
||||||
expect(wrapper.is(Modals)).toBe(true)
|
expect(wrapper.findComponent(Modals)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Modals)
|
const wrapper = shallowMount(Modals)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Login.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Login)
|
const wrapper = shallowMount(Login)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Login', () => {
|
it('is Login', () => {
|
||||||
const wrapper = shallowMount(Login)
|
const wrapper = shallowMount(Login)
|
||||||
expect(wrapper.is(Login)).toBe(true)
|
expect(wrapper.findComponent(Login)).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('should render correct content', () => {
|
it('should render correct content', () => {
|
||||||
const wrapper = shallowMount(Login)
|
const wrapper = shallowMount(Login)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Page404.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Page404)
|
const wrapper = shallowMount(Page404)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Page500', () => {
|
it('is Page500', () => {
|
||||||
const wrapper = shallowMount(Page404)
|
const wrapper = shallowMount(Page404)
|
||||||
expect(wrapper.is(Page404)).toBe(true)
|
expect(wrapper.findComponent(Page404)).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('should render correct content', () => {
|
it('should render correct content', () => {
|
||||||
const wrapper = shallowMount(Page404)
|
const wrapper = shallowMount(Page404)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Page500.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Page500)
|
const wrapper = shallowMount(Page500)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Page500', () => {
|
it('is Page500', () => {
|
||||||
const wrapper = shallowMount(Page500)
|
const wrapper = shallowMount(Page500)
|
||||||
expect(wrapper.is(Page500)).toBe(true)
|
expect(wrapper.findComponent(Page500)).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('should render correct content', () => {
|
it('should render correct content', () => {
|
||||||
const wrapper = shallowMount(Page500)
|
const wrapper = shallowMount(Page500)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Register.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Register)
|
const wrapper = shallowMount(Register)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Register', () => {
|
it('is Register', () => {
|
||||||
const wrapper = shallowMount(Register)
|
const wrapper = shallowMount(Register)
|
||||||
expect(wrapper.is(Register)).toBe(true)
|
expect(wrapper.findComponent(Register)).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('should render correct content', () => {
|
it('should render correct content', () => {
|
||||||
const wrapper = shallowMount(Register)
|
const wrapper = shallowMount(Register)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Colors.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Colors)
|
const wrapper = shallowMount(Colors)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Colors', () => {
|
it('is Colors', () => {
|
||||||
const wrapper = shallowMount(Colors)
|
const wrapper = shallowMount(Colors)
|
||||||
expect(wrapper.is(Colors)).toBe(true)
|
expect(wrapper.findComponent(Colors)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = mount(Colors)
|
const wrapper = mount(Colors)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Typography.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Typography)
|
const wrapper = shallowMount(Typography)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Typography', () => {
|
it('is Typography', () => {
|
||||||
const wrapper = shallowMount(Typography)
|
const wrapper = shallowMount(Typography)
|
||||||
expect(wrapper.is(Typography)).toBe(true)
|
expect(wrapper.findComponent(Typography)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Typography)
|
const wrapper = shallowMount(Typography)
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ describe('User.vue', () => {
|
|||||||
expect(User.name).toBe('User')
|
expect(User.name).toBe('User')
|
||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is User', () => {
|
it('is User', () => {
|
||||||
expect(wrapper.is(User)).toBe(true)
|
expect(wrapper.findComponent(User)).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('should have methods', () => {
|
it('should have methods', () => {
|
||||||
expect(typeof User.methods.goBack).toEqual('function')
|
expect(typeof User.methods.goBack).toEqual('function')
|
||||||
|
|||||||
@@ -21,14 +21,14 @@ describe('Users.vue', () => {
|
|||||||
localVue,
|
localVue,
|
||||||
router
|
router
|
||||||
})
|
})
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Users', () => {
|
it('is Users', () => {
|
||||||
const wrapper = shallowMount(Users,{
|
const wrapper = shallowMount(Users,{
|
||||||
localVue,
|
localVue,
|
||||||
router
|
router
|
||||||
})
|
})
|
||||||
expect(wrapper.is(Users)).toBe(true)
|
expect(wrapper.findComponent(Users)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Users, {
|
const wrapper = shallowMount(Users, {
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe('Widgets.vue', () => {
|
|||||||
})
|
})
|
||||||
it('is Vue instance', () => {
|
it('is Vue instance', () => {
|
||||||
const wrapper = shallowMount(Widgets)
|
const wrapper = shallowMount(Widgets)
|
||||||
expect(wrapper.isVueInstance()).toBe(true)
|
expect(wrapper.vm).toBeTruthy()
|
||||||
})
|
})
|
||||||
it('is Widgets', () => {
|
it('is Widgets', () => {
|
||||||
const wrapper = shallowMount(Widgets)
|
const wrapper = shallowMount(Widgets)
|
||||||
expect(wrapper.is(Widgets)).toBe(true)
|
expect(wrapper.findComponent(Widgets)).toBeTruthy()
|
||||||
})
|
})
|
||||||
test('renders correctly', () => {
|
test('renders correctly', () => {
|
||||||
const wrapper = shallowMount(Widgets)
|
const wrapper = shallowMount(Widgets)
|
||||||
|
|||||||
Reference in New Issue
Block a user