test: update snapshots and tests
This commit is contained in:
@@ -16,11 +16,6 @@ describe('Users.vue', () => {
|
||||
it('has a created hook', () => {
|
||||
expect(typeof Users.data).toMatch('function')
|
||||
})
|
||||
it('sets the correct default data', () => {
|
||||
expect(typeof Users.data).toMatch('function')
|
||||
const defaultData = Users.data()
|
||||
expect(defaultData.currentPage).toBe(1)
|
||||
})
|
||||
it('is Vue instance', () => {
|
||||
const wrapper = shallowMount(Users,{
|
||||
localVue,
|
||||
|
||||
@@ -41,6 +41,7 @@ exports[`User.vue renders correctly 1`] = `
|
||||
>
|
||||
<cbutton-stub
|
||||
activeclass="active"
|
||||
color="primary"
|
||||
event="click"
|
||||
exactactiveclass="active"
|
||||
routertag="a"
|
||||
|
||||
@@ -9,20 +9,20 @@ exports[`Users.vue renders correctly 1`] = `
|
||||
>
|
||||
<ccard-stub
|
||||
bodywrapper="true"
|
||||
headerhtml="users"
|
||||
headerhtml="Users"
|
||||
name="slide"
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ctable-stub
|
||||
current-page="1"
|
||||
clickablerows="true"
|
||||
defaultsorter="[object Object]"
|
||||
fields="[object Object],[object Object],[object Object],[object Object],[object Object]"
|
||||
fields="[object Object],[object Object],[object Object],[object Object]"
|
||||
hover="true"
|
||||
indexcolumn="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]"
|
||||
itemsperpage="10"
|
||||
itemsperpage="5"
|
||||
pagination="[object Object]"
|
||||
per-page="5"
|
||||
striped="true"
|
||||
/>
|
||||
</ccard-stub>
|
||||
|
||||
Reference in New Issue
Block a user