Skip to content

Commit

Permalink
dedent-test: change test data to pass spell check (#2977)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Mar 20, 2021
1 parent 4528057 commit 540f336
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/__testUtils__/__tests__/dedent-test.js
Expand Up @@ -106,22 +106,22 @@ describe('dedent', () => {
});

it('supports expression interpolation', () => {
const name = 'Luke Skywalker';
const age = 42;
const name = 'John';
const surname = 'Doe';
const output = dedent`
{
"me": {
"name": "${name}"
"age": ${String(age)}
"name": "${name}",
"surname": "${surname}"
}
}
`;
expect(output).to.equal(
[
'{',
' "me": {',
' "name": "Luke Skywalker"',
' "age": 42',
' "name": "John",',
' "surname": "Doe"',
' }',
'}',
'',
Expand Down

0 comments on commit 540f336

Please sign in to comment.