Skip to content

Commit

Permalink
text: add transform spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Jan 13, 2023
1 parent 48a8285 commit 4c6c44a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/transformPlaceholder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ describe('transform in JS', () => {
content: 'const s = "/image/" + "placeholder"',
result: null,
},
{
// eslint-disable-next-line no-template-curly-in-string
content: 'const s = `/image/placeholder/t/${name}`',
result: null,
},
])('transform: $content -> $result', async ({ content, result }) => {
expect(await transform(content)).toBe(result)
})
Expand Down

0 comments on commit 4c6c44a

Please sign in to comment.