-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Label (v8): convert tests to use testing-library (#22211)
- Loading branch information
1 parent
f10cc04
commit f80b990
Showing
2 changed files
with
35 additions
and
34 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
56 changes: 29 additions & 27 deletions
56
packages/react/src/components/Label/__snapshots__/Label.test.tsx.snap
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,31 +1,33 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Label renders label correctly 1`] = ` | ||
<label | ||
className= | ||
ms-Label | ||
{ | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-font-smoothing: antialiased; | ||
box-shadow: none; | ||
box-sizing: border-box; | ||
color: #323130; | ||
display: block; | ||
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif; | ||
font-size: 14px; | ||
font-weight: 600; | ||
margin-bottom: 0px; | ||
margin-left: 0px; | ||
margin-right: 0px; | ||
margin-top: 0px; | ||
overflow-wrap: break-word; | ||
padding-bottom: 5px; | ||
padding-left: 0; | ||
padding-right: 0; | ||
padding-top: 5px; | ||
word-wrap: break-word; | ||
} | ||
> | ||
test | ||
</label> | ||
<div> | ||
<label | ||
class= | ||
ms-Label | ||
{ | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-font-smoothing: antialiased; | ||
box-shadow: none; | ||
box-sizing: border-box; | ||
color: #323130; | ||
display: block; | ||
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif; | ||
font-size: 14px; | ||
font-weight: 600; | ||
margin-bottom: 0px; | ||
margin-left: 0px; | ||
margin-right: 0px; | ||
margin-top: 0px; | ||
overflow-wrap: break-word; | ||
padding-bottom: 5px; | ||
padding-left: 0; | ||
padding-right: 0; | ||
padding-top: 5px; | ||
word-wrap: break-word; | ||
} | ||
> | ||
test | ||
</label> | ||
</div> | ||
`; |