Skip to content

Commit

Permalink
fix(isolated_declarations): try fix fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Sep 20, 2024
1 parent 9b3f763 commit e148c80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 36 deletions.
24 changes: 6 additions & 18 deletions crates/oxc_isolated_declarations/tests/fixtures/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}

Expand Down
24 changes: 6 additions & 18 deletions crates/oxc_isolated_declarations/tests/snapshots/class.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e148c80

Please sign in to comment.