Skip to content

Commit

Permalink
fix: Use mock of lodash.debounce (ant-design#15904)
Browse files Browse the repository at this point in the history
* another try

* rm mock file
  • Loading branch information
zombieJ authored Apr 7, 2019
1 parent 74255ab commit fb6b6a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion components/tree/__tests__/directory.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit fb6b6a1

Please sign in to comment.