Skip to content

Commit

Permalink
refactor(macro): add descriptions to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko committed Jan 6, 2023
1 parent d9b9268 commit 53d2844
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/macro/test/jsx-trans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,9 @@ const cases: TestCase[] = [
`,
},
{
name: 'Use a js macro inside a JSX Attribute of a component handled by JSX macro',
input: `
import { t, plural, Trans } from '@lingui/macro'
import { t, Trans } from '@lingui/macro';
<Trans>Read <a href="/more" title={t\`Full content of \${articleName}\`}>more</a></Trans>
`,
expected: `
Expand All @@ -344,8 +345,9 @@ const cases: TestCase[] = [
`,
},
{
name: 'Use a js macro inside a JSX Attribute of a non macro JSX component',
input: `
import { plural } from '@lingui/macro'
import { plural } from '@lingui/macro';
<a href="/about" title={plural(count, {
one: "# book",
other: "# books"
Expand Down

0 comments on commit 53d2844

Please sign in to comment.