Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd52e905

Browse files
authored
Add test for#16207 (#16890)
1 parenta1e354d commitd52e905

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
classFoo{
2+
constructor(
3+
@required
4+
// comment
5+
protectedreadonlymyParam:string,
6+
){}
7+
}

‎tests/format/typescript/comments/__snapshots__/format.test.js.snap

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,32 @@ class Foo {
222222
================================================================================
223223
`;
224224

225+
exports[`16207.ts format 1`]=`
226+
====================================options=====================================
227+
parsers: ["typescript"]
228+
printWidth: 80
229+
| printWidth
230+
=====================================input======================================
231+
class Foo{
232+
constructor(
233+
@required
234+
// comment
235+
protectedreadonlymyParam:string,
236+
) {}
237+
}
238+
239+
=====================================output=====================================
240+
class Foo{
241+
constructor(
242+
@required
243+
// comment
244+
protectedreadonlymyParam:string,
245+
) {}
246+
}
247+
248+
================================================================================
249+
`;
250+
225251
exports[`abstract_class.ts format 1`]=`
226252
====================================options=====================================
227253
parsers: ["typescript"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp