From e4e73f6043026d8fc21f823686920acd17b3a93b Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Sun, 19 Nov 2023 18:54:16 +0100 Subject: [PATCH] chore: add a snapshot for interpolation (#1380) --- packages/testkit/src/__snapshots__/babel.test.ts.snap | 3 ++- packages/testkit/src/babel.test.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/testkit/src/__snapshots__/babel.test.ts.snap b/packages/testkit/src/__snapshots__/babel.test.ts.snap index 5486fbf4d..07c703313 100644 --- a/packages/testkit/src/__snapshots__/babel.test.ts.snap +++ b/packages/testkit/src/__snapshots__/babel.test.ts.snap @@ -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 diff --git a/packages/testkit/src/babel.test.ts b/packages/testkit/src/babel.test.ts index 116dae768..87da1ce40 100644 --- a/packages/testkit/src/babel.test.ts +++ b/packages/testkit/src/babel.test.ts @@ -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; @@ -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]