Skip to content

Commit

Permalink
Seperate test to pass CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
kunli2 committed Nov 28, 2023
1 parent bf4a8ca commit d184d42
Showing 1 changed file with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
"""
)
);
}
}

0 comments on commit d184d42

Please sign in to comment.