mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
import { describe, expect, it, vi } from 'vitest'
|
|
import { composeRefs } from '../..'
|
|
|
|
describe('composeRefs', () => {
|
|
it('ref setter should be called', () => {
|
|
const refSetter = vi.fn()
|
|
const fn = composeRefs(refSetter)
|
|
fn(null)
|
|
expect(refSetter).toHaveBeenCalled()
|
|
})
|
|
})
|