Skip to content

Commit 7fc4fbc

Browse files
CopilotFDiskas
andcommitted
Fix snapshot: use single backslashes for JSDoc comment escaping
Co-authored-by: FDiskas <[email protected]>
1 parent a7af617 commit 7fc4fbc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/spec/jsdoc-escaping/__snapshots__/basic.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ exports[`jsdoc-escaping > should escape JSDoc comment characters in descriptions
1313
* ---------------------------------------------------------------
1414
*/
1515
16-
/** Information schema with malicious **\\/ window.location='http://evil.com' /** content */
16+
/** Information schema with malicious **\/ window.location='http://evil.com' /** content */
1717
export interface Information {
18-
/** The ID of the information record. Contains **\\/ dangerous content /** here. */
18+
/** The ID of the information record. Contains **\/ dangerous content /** here. */
1919
id?: number;
20-
/** Title field with *\\/ and /* characters that could break comments */
20+
/** Title field with *\/ and /* characters that could break comments */
2121
title?: string;
2222
/**
2323
* Multi-line description
24-
* with *\\/ characters
24+
* with *\/ characters
2525
* and /* other markers
2626
* that could break JSDoc comments
2727
*/
@@ -288,10 +288,10 @@ export class Api<
288288
> extends HttpClient<SecurityDataType> {
289289
information = {
290290
/**
291-
* @description Get service point file of all Nordic countries (SE,FI,DK,NO) from S3 storage. You can download previous service point file upto 7 days from current date. This is equivalent to **\\/information** endpoint with parameters \`countryCode:SE,FI,DK,NO\` and \`context:ALL\` and header \`Accept-Encoding:gzip\`.
291+
* @description Get service point file of all Nordic countries (SE,FI,DK,NO) from S3 storage. You can download previous service point file upto 7 days from current date. This is equivalent to **\/information** endpoint with parameters \`countryCode:SE,FI,DK,NO\` and \`context:ALL\` and header \`Accept-Encoding:gzip\`.
292292
*
293293
* @name InformationList
294-
* @summary Get service point file with **\\/ alert('XSS') /** injection attempt
294+
* @summary Get service point file with **\/ alert('XSS') /** injection attempt
295295
* @request GET:/information
296296
*/
297297
informationList: (params: RequestParams = {}) =>

0 commit comments

Comments
 (0)