diff --git a/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java b/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java index 32b8d79e..5856f7a5 100644 --- a/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java +++ b/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java @@ -81,16 +81,27 @@ void extendsKeyword() { } @ExpectedToFail - @ParameterizedTest - @ValueSource(strings = { - ";", - "," - }) - void typeLiteral(String delimiter) { + @Test + void typeLiteralDelimiterSemicolon() { rewriteRun( javaScript(""" - type Person = { name: string %s age: number }; - """.formatted(delimiter)) + type Person = { + name: string ; // Semicolon as delimiter + age: number }; + """ + ) + ); + } + + @Test + void typeLiteralDelimiterComma() { + rewriteRun( + javaScript(""" + type Person = { + name: string , // Comma as delimiter + age: number }; + """ + ) ); } }