Skip to content

Commit 09375a7

Browse files
committed
Update test
1 parent 17c0957 commit 09375a7

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/__tests__/baselines/minification/simple.ts.baseline

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ Source code:
3737
styled.div\`this\\nis\\na/* ignore me \\n please */\\ntest\`
3838

3939
// removes line comments filling an entire line
40-
// \`line one line two\`
41-
styled.div\`line one
42-
// remove this comment
43-
line two\`
40+
// \`line one{line:two;}\`
41+
styled.div\`line one {
42+
// remove this comment
43+
line: two;
44+
}\`
4445

4546
// removes line comments at the end of lines of code
4647
// \`valid line with out comments\`
@@ -101,8 +102,8 @@ TypeScript before transform:
101102
// \`this is a test\`
102103
styled.div \`this\\nis\\na/* ignore me \\n please */\\ntest\`;
103104
// removes line comments filling an entire line
104-
// \`line one line two\`
105-
styled.div \`line one\\n// remove this comment\\nline two\`;
105+
// \`line one{line:two;}\`
106+
styled.div \`line one {\\n // remove this comment\\n line: two;\\n}\`;
106107
// removes line comments at the end of lines of code
107108
// \`valid line with out comments\`
108109
styled.div \`valid line with // a comment\\nout comments\`;
@@ -153,8 +154,8 @@ TypeScript after transform:
153154
// \`this is a test\`
154155
styled.div \`this is a test\`;
155156
// removes line comments filling an entire line
156-
// \`line one line two\`
157-
styled.div \`line oneline two\`;
157+
// \`line one{line:two;}\`
158+
styled.div \`line one{line:two;}\`;
158159
// removes line comments at the end of lines of code
159160
// \`valid line with out comments\`
160161
styled.div \`valid line without comments\`;

src/__tests__/fixtures/minification/simple.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ styled.div`this is a/* ignore me please */test`
3030
styled.div`this\nis\na/* ignore me \n please */\ntest`
3131

3232
// removes line comments filling an entire line
33-
// `line one line two`
34-
styled.div`line one
35-
// remove this comment
36-
line two`
33+
// `line one{line:two;}`
34+
styled.div`line one {
35+
// remove this comment
36+
line: two;
37+
}`
3738

3839
// removes line comments at the end of lines of code
3940
// `valid line with out comments`

0 commit comments

Comments
 (0)