Skip to content

Commit

Permalink
test: ColorPicker基础测试
Browse files Browse the repository at this point in the history
  • Loading branch information
lb1129 committed Jun 24, 2023
1 parent 79d8f21 commit a7fff74
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/ColorPicker/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { describe, it, expect } from 'vitest'
import { mount } from '@vue/test-utils'
import ColorPicker from '../index.vue'

describe('ColorPicker', () => {
it('component could be mount and unmounted without errors', () => {
const wrapper = mount(ColorPicker, {
props: {
value: ''
}
})
expect(() => wrapper.unmount()).not.toThrow()
})
})

0 comments on commit a7fff74

Please sign in to comment.