Skip to content

Commit e6192b2

Browse files
committed
Format tree itself instead of its description
1 parent e7068e8 commit e6192b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SwiftBasicFormatTest/BasicFormatTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ final class BasicFormatTest: XCTestCase {
351351
let body = decl.cast(FunctionDeclSyntax.self).body!
352352

353353
assertFormatted(
354-
source: body.formatted().description,
354+
tree: body,
355355
expected: """
356356
{
357357
print(1)
@@ -372,7 +372,7 @@ final class BasicFormatTest: XCTestCase {
372372
let body = decl.cast(StructDeclSyntax.self).memberBlock.members.first!.decl.cast(FunctionDeclSyntax.self).body!
373373

374374
assertFormatted(
375-
source: body.formatted().description,
375+
tree: body,
376376
expected: """
377377
{
378378
print(1)

0 commit comments

Comments
 (0)