test: avoid mock the whole lodash but only debounce

This commit is contained in:
陈婉玉 2020-09-01 11:32:07 +08:00 committed by jeremywu
parent 7da3b560bd
commit 4e3d046f77

View File

@ -1,5 +1,5 @@
const _ = jest.genMockFromModule('lodash')
const _ = jest.requireActual('lodash')
const debounce = jest.fn(fn => {