feat(app && tests): refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {test, describe, expect} from 'vitest'
|
||||
import { mount} from '@vue/test-utils'
|
||||
import Accordion from '@atoms/Accordion.vue';
|
||||
import Accordion from '@atoms/VAccordion.vue';
|
||||
|
||||
describe('Accordion', () => {
|
||||
test('Accordion mounted', () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {test, describe, expect} from 'vitest'
|
||||
import { mount} from '@vue/test-utils'
|
||||
import Button from '@atoms/Button.vue';
|
||||
import Button from '@atoms/VButton.vue';
|
||||
|
||||
describe('Accordion', () => {
|
||||
test('Accordion mounted', () => {
|
||||
|
||||
@@ -4,7 +4,12 @@ import DoubleSwitch from '@atoms/DoubleSwitch.vue';
|
||||
|
||||
describe('DoubleSwitch', () => {
|
||||
test('DoubleSwitch mounted', () => {
|
||||
const wrapper = mount(DoubleSwitch)
|
||||
const wrapper = mount(DoubleSwitch, {
|
||||
global: {
|
||||
provide: {
|
||||
isChecked: false
|
||||
}}
|
||||
})
|
||||
expect(wrapper.exists()).toBe(true)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user