Skip to content

Commit

Permalink
chore: add a snapshot for interpolation (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored Nov 19, 2023
1 parent faf6579 commit e4e73f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/testkit/src/__snapshots__/babel.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,8 @@ CSS:
width: calc(2 * var(--t13jq05-3));
height: var(--t13jq05-4);
grid-template-columns: var(--t13jq05-5) 1fr 1fr var(--t13jq05-5);
border-radius: var(--t13jq05-6)
border-radius: var(--t13jq05-6);
padding: 10px;
}
Dependencies: NA
Expand Down
5 changes: 4 additions & 1 deletion packages/testkit/src/babel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,8 @@ describe('strategy shaker', () => {
dedent`
import { styled } from '@linaria/react';
const padding = 10;
const size = () => 100;
const shadow = () => 5;
const unit = () => 1;
Expand All @@ -765,7 +767,8 @@ describe('strategy shaker', () => {
width: calc(2 * ${'${props => props.width}'}vw);
height: ${'${props => { if (true) { return props.height } else { return 200 } }}'}px;
grid-template-columns: ${'${unit}'}fr 1fr 1fr ${'${unit}'}fr;
border-radius: ${'${function(props) { return 200 }}'}px
border-radius: ${'${function(props) { return 200 }}'}px;
padding: ${'${padding}'}px;
\`;
`,
[evaluator]
Expand Down

0 comments on commit e4e73f6

Please sign in to comment.