Skip to content

Commit a6d76e0

Browse files
committed
Fix up some tests that need redundantly quoted strings
1 parent fd889e8 commit a6d76e0

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

build-tests/api-documenter-test/etc/api-documenter-test.api.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@
954954
{
955955
"kind": "PropertySignature",
956956
"canonicalReference": "api-documenter-test!IDocInterface3#\"[not.a.symbol]\":member",
957-
"docComment": "/**\n * An identifier that does needs quotes. It misleadingly looks like an ECMAScript symbol.\n */\n",
957+
"docComment": "/**\n * An identifier that does need quotes. It misleadingly looks like an ECMAScript symbol.\n */\n",
958958
"excerptTokens": [
959959
{
960960
"kind": "Content",

build-tests/api-documenter-test/etc/markdown/api-documenter-test.idocinterface3.__not.a.symbol__.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## IDocInterface3."\[not.a.symbol\]" property
66

7-
An identifier that does needs quotes. It misleadingly looks like an ECMAScript symbol.
7+
An identifier that does need quotes. It misleadingly looks like an ECMAScript symbol.
88

99
<b>Signature:</b>
1010

build-tests/api-documenter-test/etc/markdown/api-documenter-test.idocinterface3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface IDocInterface3
1717

1818
| Property | Type | Description |
1919
| --- | --- | --- |
20-
| ["\[not.a.symbol\]"](./api-documenter-test.idocinterface3.__not.a.symbol__.md) | string | An identifier that does needs quotes. It misleadingly looks like an ECMAScript symbol. |
20+
| ["\[not.a.symbol\]"](./api-documenter-test.idocinterface3.__not.a.symbol__.md) | string | An identifier that does need quotes. It misleadingly looks like an ECMAScript symbol. |
2121
| [\[EcmaSmbols.example\]](./api-documenter-test.idocinterface3._ecmasmbols.example_.md) | string | ECMAScript symbol |
2222
| [redundantQuotes](./api-documenter-test.idocinterface3.redundantquotes.md) | string | A quoted identifier with redundant quotes. |
2323

build-tests/api-documenter-test/etc/yaml/api-documenter-test/idocinterface3.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ items:
1313
- 'api-documenter-test!IDocInterface3#[EcmaSmbols.example]:member'
1414
- 'api-documenter-test!IDocInterface3#redundantQuotes:member'
1515
- uid: 'api-documenter-test!IDocInterface3#"[not.a.symbol]":member'
16-
summary: An identifier that does needs quotes. It misleadingly looks like an ECMAScript symbol.
16+
summary: An identifier that does need quotes. It misleadingly looks like an ECMAScript symbol.
1717
name: '"[not.a.symbol]"'
1818
fullName: '"[not.a.symbol]"'
1919
langs:

build-tests/api-documenter-test/src/DocClass1.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,14 @@ export interface IDocInterface3 {
9393
/**
9494
* A quoted identifier with redundant quotes.
9595
*/
96-
redundantQuotes: string;
96+
// prettier-ignore
97+
"redundantQuotes": string;
9798

9899
/**
99-
* An identifier that does needs quotes. It misleadingly looks like an ECMAScript symbol.
100+
* An identifier that does need quotes. It misleadingly looks like an ECMAScript symbol.
100101
*/
101-
'[not.a.symbol]': string;
102+
// prettier-ignore
103+
"[not.a.symbol]": string;
102104
}
103105

104106
/**

build-tests/api-extractor-scenarios/etc/test-outputs/internationalCharacters/rollup.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare class ClassΞ {
44
memberΔ(paramΩ: string): ClassΞ;
55
'invalid chars'<T = ClassΞ>(): void;
6-
validChars(): void;
6+
'validChars'(): void;
77
}
88
export { ClassΞ }
99
export { ClassΞ as ClassΣ }

build-tests/api-extractor-scenarios/src/internationalCharacters/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export class ClassΞ {
99

1010
public 'invalid chars'<T = ClassΞ>(): void {}
1111

12-
public validChars(): void {}
12+
// prettier-ignore
13+
public 'validChars'(): void {}
1314
}
1415

1516
export { ClassΞ as ClassΣ };

0 commit comments

Comments
 (0)