Browse Source
fix: Use mock of lodash.debounce (#15904)
* another try
* rm mock file
pull/15912/head
zombieJ
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
3 deletions
-
.gitignore
-
components/tree/__tests__/directory.test.js
|
|
@ -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 |
|
|
|
|
|
@ -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(); |
|
|
|
}); |
|
|
|