Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit e88a1a0

Browse files
Jammy-LouieTeamModerne
authored andcommitted
refactor: New line at the end of SourceSpecs text blocks
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.SourceSpecTextBlockNewLine?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne <team@moderne.io>
1 parent 72d71af commit e88a1a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rewrite-javascript/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ void extendsKeyword() {
8282
@Test
8383
void typeLiteralDelimiterSemicolon() {
8484
rewriteRun(
85-
javaScript("""
85+
javaScript(
86+
"""
8687
type Person = {
8788
name: string ; // Semicolon as delimiter
8889
age: number };
@@ -94,7 +95,8 @@ void typeLiteralDelimiterSemicolon() {
9495
@Test
9596
void typeLiteralDelimiterComma() {
9697
rewriteRun(
97-
javaScript("""
98+
javaScript(
99+
"""
98100
type Person = {
99101
name: string , // Comma as delimiter
100102
age: number };

0 commit comments

Comments
 (0)