-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mebtte
committed
Nov 8, 2023
1 parent
29873c4
commit be31af3
Showing
4 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
import { cleanup, render } from '@testing-library/react'; | ||
import Label from '.'; | ||
|
||
afterEach(cleanup); | ||
|
||
test('component label', () => { | ||
const { container } = render(<Label label="标签" />); | ||
expect(container.children.length).toBe(1); | ||
}); |
2 changes: 1 addition & 1 deletion
2
apps/pwa/src/components/label.tsx → apps/pwa/src/components/label/index.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
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