-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: React 17 fix - replace react-transition-group
react-transition-group is not actively maintained and is not fully compatible with React 17
- Loading branch information
Li Juen Chang
committed
Mar 22, 2021
1 parent
2a366ed
commit 8131af0
Showing
6 changed files
with
56 additions
and
38 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
14 changes: 14 additions & 0 deletions
14
draft-packages/modal/KaizenDraft/Modal/Primitives/GenericModal.spec.tsx
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { cleanup, render } from "@testing-library/react" | ||
import * as React from "react" | ||
import GenericModal from "./GenericModal" | ||
|
||
afterEach(cleanup) | ||
|
||
describe("<GenericModal />", () => { | ||
it("renders the provided content", () => { | ||
const { getByText } = render( | ||
<GenericModal isOpen={true}>Example</GenericModal> | ||
) | ||
expect(() => getByText("Example")).not.toThrow() | ||
}) | ||
}) |
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