From e148c80fcb6d816410ea42e58285bef2e49c1073 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sat, 21 Sep 2024 01:27:56 +0800 Subject: [PATCH] fix(isolated_declarations): try fix fixtures --- .../tests/fixtures/class.ts | 24 +++++-------------- .../tests/snapshots/class.snap | 24 +++++-------------- 2 files changed, 12 insertions(+), 36 deletions(-) diff --git a/crates/oxc_isolated_declarations/tests/fixtures/class.ts b/crates/oxc_isolated_declarations/tests/fixtures/class.ts index 00b29473a6d40..cd5a85d7113c7 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/class.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/class.ts @@ -20,29 +20,17 @@ export abstract class Qux { } export class Baz { - /** - * Just a comment - */ + /** Just a comment */ readonly prop1 = "some string"; - /** - * Just a comment - */ + /** Just a comment */ prop2 = "another string"; - /** - * Just a comment - */ + /** Just a comment */ private prop3 = "yet another string"; - /** - * Just a comment - */ + /** Just a comment */ private prop4(): void {} - /** - * Just a comment - */ + /** Just a comment */ private static prop5 = "yet another string"; - /** - * Just a comment - */ + /** Just a comment */ private static prop6(): void {} } diff --git a/crates/oxc_isolated_declarations/tests/snapshots/class.snap b/crates/oxc_isolated_declarations/tests/snapshots/class.snap index b2eb68af5854c..6087ed6875691 100644 --- a/crates/oxc_isolated_declarations/tests/snapshots/class.snap +++ b/crates/oxc_isolated_declarations/tests/snapshots/class.snap @@ -21,29 +21,17 @@ export declare abstract class Qux { baz(): void; } export declare class Baz { - /** - * Just a comment - */ + /** Just a comment */ readonly prop1 = "some string"; - /** - * Just a comment - */ + /** Just a comment */ prop2: string; - /** - * Just a comment - */ + /** Just a comment */ private prop3; - /** - * Just a comment - */ + /** Just a comment */ private prop4; - /** - * Just a comment - */ + /** Just a comment */ private static prop5; - /** - * Just a comment - */ + /** Just a comment */ private static prop6; } export declare class Boo {