test: update snapshots and tests

This commit is contained in:
woothu
2019-10-19 15:29:25 +02:00
parent 452af28957
commit d2e7838db6
38 changed files with 2087 additions and 1959 deletions
-6
View File
@@ -12,12 +12,6 @@ describe('Switches.vue', () => {
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)