Skip to content

Commit b22f829

Browse files
committed
test support of shebang in script files
scalameta/scalameta#3812
1 parent 54c8022 commit b22f829

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scalafix-tests/integration/src/test/scala/scalafix/tests/cli/CliSyntacticSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ class CliSyntacticSuite extends BaseCliSuite {
312312
check(
313313
name = "fix script files",
314314
originalLayout = s"""|/a.sc
315+
|#!/usr/bin/env -S scala-cli shebang
315316
|def foo = { println(s"hello") }
316317
|lazy val bar = project
317318
|""".stripMargin,
@@ -321,6 +322,7 @@ class CliSyntacticSuite extends BaseCliSuite {
321322
"a.sc"
322323
),
323324
expectedLayout = s"""|/a.sc
325+
|#!/usr/bin/env -S scala-cli shebang
324326
|def foo = { println("hello") }
325327
|lazy val bar = project
326328
|""".stripMargin,

0 commit comments

Comments
 (0)