From 00887a0f4f836e862e601ecdf33347802ddc3eed Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Sat, 15 May 2021 12:08:02 +0100 Subject: [PATCH] Test JS modifier on all Scala 2 versions --- .../src/test/{scala-2.12 => scala-2}/tests/js/JsCliSuite.scala | 0 .../test/{scala-2.12 => scala-2}/tests/js/JsModsSuite.scala | 0 .../src/test/{scala-2.12 => scala-2}/tests/js/JsSuite.scala | 3 ++- .../src/test/{scala-2.12 => scala-2}/tests/js/JsTests.scala | 0 4 files changed, 2 insertions(+), 1 deletion(-) rename tests/unit-js/src/test/{scala-2.12 => scala-2}/tests/js/JsCliSuite.scala (100%) rename tests/unit-js/src/test/{scala-2.12 => scala-2}/tests/js/JsModsSuite.scala (100%) rename tests/unit-js/src/test/{scala-2.12 => scala-2}/tests/js/JsSuite.scala (98%) rename tests/unit-js/src/test/{scala-2.12 => scala-2}/tests/js/JsTests.scala (100%) diff --git a/tests/unit-js/src/test/scala-2.12/tests/js/JsCliSuite.scala b/tests/unit-js/src/test/scala-2/tests/js/JsCliSuite.scala similarity index 100% rename from tests/unit-js/src/test/scala-2.12/tests/js/JsCliSuite.scala rename to tests/unit-js/src/test/scala-2/tests/js/JsCliSuite.scala diff --git a/tests/unit-js/src/test/scala-2.12/tests/js/JsModsSuite.scala b/tests/unit-js/src/test/scala-2/tests/js/JsModsSuite.scala similarity index 100% rename from tests/unit-js/src/test/scala-2.12/tests/js/JsModsSuite.scala rename to tests/unit-js/src/test/scala-2/tests/js/JsModsSuite.scala diff --git a/tests/unit-js/src/test/scala-2.12/tests/js/JsSuite.scala b/tests/unit-js/src/test/scala-2/tests/js/JsSuite.scala similarity index 98% rename from tests/unit-js/src/test/scala-2.12/tests/js/JsSuite.scala rename to tests/unit-js/src/test/scala-2/tests/js/JsSuite.scala index b47ae449f..80f2c9aa0 100644 --- a/tests/unit-js/src/test/scala-2.12/tests/js/JsSuite.scala +++ b/tests/unit-js/src/test/scala-2/tests/js/JsSuite.scala @@ -224,7 +224,8 @@ class JsSuite extends BaseMarkdownSuite { "onclick", """ |```scala mdoc:js - |node.onclick = {_ => println(42)} + |import org.scalajs.dom.raw.MouseEvent + |node.onclick = {(_: MouseEvent) => println(42)} |``` """.stripMargin ) diff --git a/tests/unit-js/src/test/scala-2.12/tests/js/JsTests.scala b/tests/unit-js/src/test/scala-2/tests/js/JsTests.scala similarity index 100% rename from tests/unit-js/src/test/scala-2.12/tests/js/JsTests.scala rename to tests/unit-js/src/test/scala-2/tests/js/JsTests.scala