Skip to content

Commit

Permalink
Add tests for swc-project#1681
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 27, 2021
1 parent f3603b2 commit d1b4803
Show file tree
Hide file tree
Showing 18 changed files with 90 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2015/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es2015"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2015/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2016/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es2016"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2016/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2017/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es2017"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2017/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2018/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es2018"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2018/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2019/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es2019"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2019/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2020/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es2020"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2020/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2021/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es2021"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es2021/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es3/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es3"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es3/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es5/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"jsc": {
"target": "es5"
}
}
5 changes: 5 additions & 0 deletions tests/fixture/issue-1681/es5/input/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
console.log(String.raw`a
b
c
`);
console.log(String.raw`a\nb\nc\n`);

0 comments on commit d1b4803

Please sign in to comment.