element-plus/packages/__mocks__/lodash.js

17 lines
237 B
JavaScript
Raw Normal View History

const _ = jest.requireActual('lodash')
const debounce = jest.fn(fn => {
const caller = () => {
return fn()
}
caller.cancel = jest.fn()
caller.flush = jest.fn()
return caller
})
_.debounce = debounce
module.exports = _