Skip to content

Commit 7a06ec3

Browse files
committed
Update unit tests
1 parent bf81ad4 commit 7a06ec3

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎libraries/api-extractor/src/test/DocElementParser.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('DocElementParser tests', function (): void {
101101
kind: 'linkDocElement',
102102
referenceType: 'href',
103103
targetUrl: 'https://github.com/OfficeDev/office-ui-fabric-react',
104-
value: ''
104+
value: 'https://github.com/OfficeDev/office-ui-fabric-react'
105105
} as IHrefLinkElement
106106
];
107107
const actualSummary: IDocElement[] = DocElementParser.parse(myDocumentedClass.documentation, tokenizer);
@@ -203,7 +203,7 @@ describe('DocElementParser tests', function (): void {
203203
kind: 'linkDocElement',
204204
referenceType: 'href',
205205
targetUrl: 'http://wikipedia.org/pixel_units',
206-
value: ''
206+
value: 'http://wikipedia.org/pixel_units'
207207
} as IHrefLinkElement
208208
];
209209
const expectedParam: IParam = {
@@ -239,7 +239,7 @@ describe('DocElementParser tests', function (): void {
239239
const linkDocElement: IHrefLinkElement = (docElements[0] as IHrefLinkElement);
240240
assert.equal(linkDocElement.referenceType, 'href');
241241
assert.equal(linkDocElement.targetUrl, 'https://microsoft.com');
242-
assert.equal(linkDocElement.value, '');
242+
assert.equal(linkDocElement.value, 'https://microsoft.com');
243243
assertCapturedErrors([]);
244244
});
245245

‎libraries/api-extractor/testInputs/example3/example3-output.json‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,15 +344,17 @@
344344
"scopeName": "",
345345
"packageName": "",
346346
"exportName": "publicEnum",
347-
"memberName": ""
347+
"memberName": "",
348+
"value": "publicEnum"
348349
},
349350
{
350351
"kind": "linkDocElement",
351352
"referenceType": "code",
352353
"scopeName": "",
353354
"packageName": "",
354355
"exportName": "internalEnum",
355-
"memberName": ""
356+
"memberName": "",
357+
"value": "internalEnum"
356358
}
357359
],
358360
"remarks": [],

0 commit comments

Comments
 (0)