Skip to content

Commit

Permalink
Polish.
Browse files Browse the repository at this point in the history
  • Loading branch information
traceyyoshima committed Nov 30, 2023
1 parent 6a3ffa0 commit fa25560
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ void namedTupleMember() {
);
}

@ExpectedToFail("Requires spread operator")
@Test
void spreadOperators() {
rewriteRun(
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/org/openrewrite/javascript/tree/UnaryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -79,8 +79,8 @@ void spreadOperator() {
rewriteRun(
javaScript(
"""
function concat<T>(arr1: T[], arr2: T[]): T[] {
return [ ... arr1 , ... arr2 ];
function spread(arr) {
return [...arr]
}
"""
)
Expand Down

0 comments on commit fa25560

Please sign in to comment.