build(aio): ensure usageNotes are copied into decorator API docs (#23901)
PR Close #23901
This commit is contained in:
parent
d4b8b24406
commit
a2e8b3a6a8
|
@ -90,8 +90,7 @@ module.exports = function mergeDecoratorDocs(log) {
|
|||
callMember.description.substring(0, 50));
|
||||
// Merge the documentation found in this call signature into the original decorator
|
||||
decoratorDoc.description = callMember.description;
|
||||
decoratorDoc.howToUse = callMember.howToUse;
|
||||
decoratorDoc.whatItDoes = callMember.whatItDoes;
|
||||
decoratorDoc.usageNotes = callMember.usageNotes;
|
||||
|
||||
// remove doc from its module doc's exports
|
||||
doc.moduleDoc.exports =
|
||||
|
|
|
@ -32,8 +32,7 @@ describe('mergeDecoratorDocs processor', () => {
|
|||
{
|
||||
isCallMember: true,
|
||||
description: 'The actual description of the call signature',
|
||||
whatItDoes: 'Does something cool...',
|
||||
howToUse: 'Use it like this...'
|
||||
usageNotes: 'Use it like this...'
|
||||
},
|
||||
{
|
||||
description: 'Some other member'
|
||||
|
@ -69,8 +68,7 @@ describe('mergeDecoratorDocs processor', () => {
|
|||
it('should copy across properties from the call signature doc', () => {
|
||||
processor.$process([decoratorDoc, metadataDoc, otherDoc]);
|
||||
expect(decoratorDoc.description).toEqual('The actual description of the call signature');
|
||||
expect(decoratorDoc.whatItDoes).toEqual('Does something cool...');
|
||||
expect(decoratorDoc.howToUse).toEqual('Use it like this...');
|
||||
expect(decoratorDoc.usageNotes).toEqual('Use it like this...');
|
||||
});
|
||||
|
||||
it('should remove the metadataDoc from the module exports', () => {
|
||||
|
|
Loading…
Reference in New Issue