Skip to content

Commit e35ffb3

Browse files
committed
Test as const
1 parent ab383d1 commit e35ffb3

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎tests/format/typescript/as/comments/18160.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,16 @@ Foo;
5757
1 satisfies // comment
5858
Foo;
5959

60+
1 as
61+
/**
62+
* jsdoc
63+
*/
64+
const;
6065
1 as
6166
/**
6267
* jsdoc
6368
*/
6469
Foo;
65-
6670
1 satisfies
6771
/**
6872
* jsdoc

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,16 @@ Foo;
9191
1 satisfies // comment
9292
Foo;
9393
94+
1 as
95+
/**
96+
* jsdoc
97+
*/
98+
const;
9499
1 as
95100
/**
96101
* jsdoc
97102
*/
98103
Foo;
99-
100104
1 satisfies
101105
/**
102106
* jsdoc
@@ -158,12 +162,15 @@ comment
158162
1 as Foo; // comment
159163
1 satisfies Foo; // comment
160164
165+
1 as const;
166+
/**
167+
* jsdoc
168+
*/
161169
1 as
162170
/**
163171
* jsdoc
164172
*/
165173
Foo;
166-
167174
1 satisfies
168175
/**
169176
* jsdoc

0 commit comments

Comments
 (0)