From fa25560b7400795f5ac2754f47801067f022bde6 Mon Sep 17 00:00:00 2001 From: traceyyoshima Date: Thu, 30 Nov 2023 15:13:59 -0700 Subject: [PATCH] Polish. --- .../java/org/openrewrite/javascript/tree/TupleTest.java | 1 - .../java/org/openrewrite/javascript/tree/UnaryTest.java | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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] } """ )