generated from eternallycyf/ims-monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat(ims-view-pc): commonSearch auto-size and remove piano && flow
- Loading branch information
1 parent
c235d49
commit d07d0c4
Showing
31 changed files
with
241 additions
and
863 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
import { useSyncState } from '@ims-view/hooks'; | ||
import { renderHook } from '@testing-library/react'; | ||
import { act } from 'react-dom/test-utils'; | ||
|
||
test('CommonDemo', () => { | ||
const hook = renderHook(() => useSyncState(0)); | ||
const [num, setNumber] = hook.result.current; | ||
act(() => { | ||
setNumber(1); | ||
}); | ||
expect(hook.result.current[0]).toBe(1); | ||
act(() => { | ||
setNumber(2); | ||
}); | ||
expect(hook.result.current[0]).toBe(2); | ||
hook.unmount(); | ||
}); | ||
test('CommonDemo', () => {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.