diff --git a/src/test/java/org/openrewrite/javascript/tree/TupleTest.java b/src/test/java/org/openrewrite/javascript/tree/TupleTest.java index c466d124..e29713e4 100644 --- a/src/test/java/org/openrewrite/javascript/tree/TupleTest.java +++ b/src/test/java/org/openrewrite/javascript/tree/TupleTest.java @@ -58,7 +58,6 @@ void namedTupleMember() { ); } - @ExpectedToFail("Requires spread operator") @Test void spreadOperators() { rewriteRun( diff --git a/src/test/java/org/openrewrite/javascript/tree/UnaryTest.java b/src/test/java/org/openrewrite/javascript/tree/UnaryTest.java index 79dd19b1..1a37798d 100644 --- a/src/test/java/org/openrewrite/javascript/tree/UnaryTest.java +++ b/src/test/java/org/openrewrite/javascript/tree/UnaryTest.java @@ -18,12 +18,12 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import org.junitpioneer.jupiter.ExpectedToFail; import org.junitpioneer.jupiter.Issue; import org.openrewrite.test.RewriteTest; import static org.openrewrite.javascript.Assertions.javaScript; +@SuppressWarnings("JSUnusedLocalSymbols") class UnaryTest implements RewriteTest { @ParameterizedTest @@ -79,8 +79,8 @@ void spreadOperator() { rewriteRun( javaScript( """ - function concat(arr1: T[], arr2: T[]): T[] { - return [ ... arr1 , ... arr2 ]; + function spread(arr) { + return [...arr] } """ )