Skip to content

Commit 1ecaf96

Browse files
committed
fix tests
1 parent b36ae4c commit 1ecaf96

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
3+
"supportedHtmlElements": ["span", "p"],
4+
"reportUnsupportedHtmlElements": false
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
3+
"extends": ["./base1/tsdoc-base1.json"],
4+
"reportUnsupportedHtmlElements": true
5+
}

tsdoc/etc/tsdoc.api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,6 @@ export class TSDocConfiguration {
12481248
isHtmlElementSupported(htmlTag: string): boolean;
12491249
isKnownMessageId(messageId: TSDocMessageId | string): boolean;
12501250
isTagSupported(tagDefinition: TSDocTagDefinition): boolean;
1251-
setReportUnsupportedHtmlElements(reportUnsupportedHtmlElements: boolean): void;
12521251
setSupportedHtmlElements(htmlTags: string[]): void;
12531252
setSupportForTag(tagDefinition: TSDocTagDefinition, supported: boolean): void;
12541253
setSupportForTags(tagDefinitions: ReadonlyArray<TSDocTagDefinition>, supported: boolean): void;

tsdoc/src/parser/__tests__/NodeParserHtml.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ test('10 Supported HTML elements, positive', () => {
114114
test('11 Supported HTML elements, negative', () => {
115115
const config: TSDocConfiguration = new TSDocConfiguration();
116116
config.setSupportedHtmlElements(['d']);
117-
config.setReportUnsupportedHtmlElements(true);
117+
config.validation.reportUnsupportedHtmlElements = true;
118118

119119
TestHelpers.parseAndMatchNodeParserSnapshot(
120120
['/**', ' * <a>', ' * <b>', ' * <c>', ' */'].join('\n'),
@@ -125,7 +125,7 @@ test('11 Supported HTML elements, negative', () => {
125125
test('12 Forbidding all HTML elements, negative', () => {
126126
const config: TSDocConfiguration = new TSDocConfiguration();
127127
config.setSupportedHtmlElements([]);
128-
config.setReportUnsupportedHtmlElements(true);
128+
config.validation.reportUnsupportedHtmlElements = true;
129129

130130
TestHelpers.parseAndMatchNodeParserSnapshot(
131131
['/**', ' * <a>', ' * <b>', ' * <c>', ' */'].join('\n'),

0 commit comments

Comments
 (0)