-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.toHaveStyle() to support transform styles (#26)
* feat(toHaveStyle): Add ability to assert on transform styles * fix(docs): Change doc block lang to typescript to prevent prettier adding parens
- Loading branch information
1 parent
2649017
commit e598542
Showing
4 changed files
with
111 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`.toHaveStyle handles negative test cases 1`] = ` | ||
"<dim>expect(</><red>element</><dim>).toHaveStyle()</> | ||
<green>- Expected</> | ||
<dim> backgroundColor: blue;</> | ||
<dim> transform: [</> | ||
<dim> {</> | ||
<green>- \\"scale\\": 1</> | ||
<red>+ \\"scale\\": 2</> | ||
<dim> }</> | ||
<dim> ];</>" | ||
`; | ||
exports[`.toHaveStyle handles transform when transform undefined 1`] = ` | ||
"<dim>expect(</><red>element</><dim>).toHaveStyle()</> | ||
<green>- Expected</> | ||
<green>- transform: [</> | ||
<green>- {</> | ||
<green>- \\"scale\\": 1</> | ||
<green>- }</> | ||
<green>- ];</> | ||
<red>+ transform: undefined;</>" | ||
`; |
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