element-plus/packages/__mocks__/lodash.js
2020-09-14 23:43:45 +08:00

11 lines
165 B
JavaScript

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