Skip to content

Commit 249c58d

Browse files
Fix test due to changes to Babel
Latest Babel uses strict checking, we skip that line for that specific test case.
1 parent 4f29199 commit 249c58d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ class TranspilationRunnerTest extends AnyWordSpec with Matchers {
141141
jsFilesAfterTranspilation.map(f =>
142142
File(f._1).contentAsString
143143
.split("\n")
144+
.filterNot(_.trim == "\"use strict\";") // latest Babel uses strict checking
144145
.head // we ignore the sourcemap reference comment here
145146
.mkString
146147
.stripLineEnd

0 commit comments

Comments
 (0)