mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
9 lines
260 B
TypeScript
9 lines
260 B
TypeScript
|
import { mount } from '@vue/test-utils'
|
||
|
import { merge } from 'lodash'
|
||
|
|
||
|
const makeMount = <C,O, E>(element: C, defaultOptions: O) => {
|
||
|
return (props: (E | O) | (E & O)= {} as E) => mount(element, merge({}, defaultOptions, props))
|
||
|
}
|
||
|
|
||
|
export default makeMount
|