fix: Use mock of lodash.debounce (#15904)

* another try

* rm mock file
This commit is contained in:
zombieJ
2019-04-07 19:39:04 +08:00
committed by GitHub
parent 74255ab1af
commit fb6b6a1b0b
2 changed files with 4 additions and 3 deletions

4
.gitignore vendored
View File

@@ -35,8 +35,8 @@ yarn.lock
package-lock.json
components/**/*.js
components/**/*.jsx
!components/**/__tests__/*.js
!components/**/__tests__/*.js.snap
!components/**/__tests__/**/*.js
!components/**/__tests__/**/*.js.snap
/.history
# Docs templates
site/theme/template/IconDisplay/*.js

View File

@@ -4,8 +4,9 @@ import Tree from '../index';
const { DirectoryTree, TreeNode } = Tree;
const mockDebounce = jest.mock('lodash/debounce', () => fn => fn);
describe('Directory Tree', () => {
const mockDebounce = jest.mock('lodash/debounce', () => fn => fn);
beforeAll(() => {
jest.useFakeTimers();
});