Skip to content

Commit

Permalink
Write a test case that fails for #27
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Oct 14, 2021
1 parent 9632899 commit 2173500
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions src/test/apps/ssr/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,34 @@ const { App } = (() => {
<MyAnchorStyled href="https://exampe.com">
Background should be limegreen
</MyAnchorStyled>
<div className={cx(
css({
"@media screen and (min-width: 1px)": {
"backgroundColor": "red"
},
"height": 50
}),
css({
"&&": {
"backgroundColor": "lightgreen"
}
})
)}>
background should be lightgreen
</div>
<div className={cx(
css({
"@media screen and (min-width: 1px)": {
"backgroundColor": "red"
},
"height": 50
}),
css({
"backgroundColor": "lightgreen"
})
)}>
background should be lightgreen
</div>
</div>
</>
);
Expand Down Expand Up @@ -331,9 +359,9 @@ const MyAnchorStyled = withStyles(
(theme, { href }) => ({
"root": {
"border": "1px solid black",
"backgroundColor":
href?.startsWith("https") ?
theme.palette.primary.main :
"backgroundColor":
href?.startsWith("https") ?
theme.palette.primary.main :
"red"
}
})
Expand Down

0 comments on commit 2173500

Please sign in to comment.