init
This commit is contained in:
		
							
								
								
									
										1
									
								
								node_modules/@microsoft/tsdoc/lib-commonjs/__tests__/DocNodeTransforms.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@microsoft/tsdoc/lib-commonjs/__tests__/DocNodeTransforms.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"file":"DocNodeTransforms.test.js","sourceRoot":"","sources":["../../src/__tests__/DocNodeTransforms.test.ts"],"names":[],"mappings":";;AAAA,wBAAgD;AAChD,+DAA8D;AAC9D,kCAA8D;AAC9D,qEAAoE;AAEpE,IAAI,CAAC,iCAAiC,EAAE;IACtC,IAAM,MAAM,GAAW;QACrB,KAAK;QACL,IAAI;QACJ,yBAAyB;QACzB,+BAA+B;QAC/B,4BAA4B;QAC5B,eAAe;QACf,KAAK;KACN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,IAAM,WAAW,GAAgB,IAAI,eAAW,EAAE,CAAC;IACnD,IAAM,aAAa,GAAkB,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACrE,IAAM,SAAS,GAAY,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5E,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,mBAAW,CAAC,SAAS,CAAC,CAAC;IACtD,IAAM,SAAS,GAAiB,SAAyB,CAAC;IAC1D,IAAM,oBAAoB,GAAiB,qCAAiB,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC9F,MAAM,CAAC,yBAAW,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;AACjF,CAAC,CAAC,CAAC","sourcesContent":["import { ParserContext, TSDocParser } from '..';\r\nimport { TestHelpers } from '../parser/__tests__/TestHelpers';\r\nimport { DocParagraph, DocNode, DocNodeKind } from '../nodes';\r\nimport { DocNodeTransforms } from '../transforms/DocNodeTransforms';\r\n\r\ntest('01 trimSpacesInParagraphNodes()', () => {\r\n  const buffer: string = [\r\n    '/**',\r\n    ' *',\r\n    ' *    This \\t is    the',\r\n    ' * first   {@mylink}sentence.',\r\n    ' *         This is another',\r\n    ' *sentence.  ',\r\n    ' */'\r\n  ].join('\\n');\r\n\r\n  const tsdocParser: TSDocParser = new TSDocParser();\r\n  const parserContext: ParserContext = tsdocParser.parseString(buffer);\r\n  const firstNode: DocNode = parserContext.docComment.summarySection.nodes[0];\r\n  expect(firstNode.kind).toEqual(DocNodeKind.Paragraph);\r\n  const paragraph: DocParagraph = firstNode as DocParagraph;\r\n  const transformedParagraph: DocParagraph = DocNodeTransforms.trimSpacesInParagraph(paragraph);\r\n  expect(TestHelpers.getDocNodeSnapshot(transformedParagraph)).toMatchSnapshot();\r\n});\r\n"]}
 | 
			
		||||
							
								
								
									
										1
									
								
								node_modules/@microsoft/tsdoc/lib-commonjs/__tests__/ParagraphSplitter.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@microsoft/tsdoc/lib-commonjs/__tests__/ParagraphSplitter.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"file":"ParagraphSplitter.test.js","sourceRoot":"","sources":["../../src/__tests__/ParagraphSplitter.test.ts"],"names":[],"mappings":";;AAAA,+DAA8D;AAC9D,iEAAgE;AAChE,kCAA6F;AAC7F,0EAAyE;AAEzE,IAAI,CAAC,8BAA8B,EAAE;IACnC,yBAAW,CAAC,+BAA+B,CACzC;QACE,KAAK;QACL,QAAQ;QACR,gBAAgB;QAChB,qBAAqB;QACrB,YAAY;QACZ,MAAM;QACN,YAAY;QACZ,kCAAkC;QAClC,IAAI;QACJ,iCAAiC;QACjC,IAAI;QACJ,OAAO;QACP,KAAK;KACN,C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AAY,CAAC,EAAE,aAAa,eAAA,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;YACtD,IAAI,oBAAY,CAAC,EAAE,aAAa,eAAA,EAAE,CAAC;YACnC,IAAI,oBAAY,CAAC,EAAE,aAAa,eAAA,EAAE,CAAC;YACnC,IAAI,oBAAY,CAAC,EAAE,aAAa,eAAA,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;SACxD,CAAC;QACF,+CAA+C;QAC/C,IAAI,oBAAY,CAAC,EAAE,aAAa,eAAA,EAAE,CAAC;KACpC,CAAC,CAAC;IAEH,qCAAiB,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;IACxD,MAAM,CAAC,yBAAW,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;AACvE,CAAC,CAAC,CAAC","sourcesContent":["import { TestHelpers } from '../parser/__tests__/TestHelpers';\r\nimport { ParagraphSplitter } from '../parser/ParagraphSplitter';\r\nimport { DocSection, DocPlainText, DocSoftBreak, DocParagraph, DocBlockTag } from '../index';\r\nimport { TSDocConfiguration } from '../configuration/TSDocConfiguration';\r\n\r\ntest('01 Basic paragraph splitting', () => {\r\n  TestHelpers.parseAndMatchDocCommentSnapshot(\r\n    [\r\n      '/**',\r\n      ' *    ',\r\n      ' * This is the',\r\n      ' * first paragraph.',\r\n      ' *   \\t   ',\r\n      ' *  ',\r\n      ' *   \\t   ',\r\n      ' * This is the second paragraph.',\r\n      ' *',\r\n      ' * This is the third paragraph.',\r\n      ' *',\r\n      ' *   ',\r\n      ' */'\r\n    ].join('\\n')\r\n  );\r\n});\r\n\r\ntest('02 Basic paragraph splitting in blocks', () => {\r\n  TestHelpers.parseAndMatchDocCommentSnapshot(\r\n    ['/**', ' * P1', ' * @remarks P2', ' *', ' * P3 @deprecated P4', ' *', ' * P5', ' */'].join('\\n')\r\n  );\r\n});\r\n\r\ntest('03 Degenerate comment framing', () => {\r\n  TestHelpers.parseAndMatchDocCommentSnapshot(\r\n    ['/** line 1', ' * line 2', '', ' *   @public line 3*/'].join('\\n')\r\n  );\r\n});\r\n\r\ntest('04 Degenerate manually constructed nodes', () => {\r\n  const configuration: TSDocConfiguration = new TSDocConfiguration();\r\n\r\n  const docSection: DocSection = new DocSection({ configuration }, [\r\n    new DocParagraph({ configuration }, [\r\n      new DocPlainText({ configuration, text: '  para 1 ' }),\r\n      new DocSoftBreak({ configuration }),\r\n      new DocPlainText({ configuration, text: '   ' }),\r\n      new DocSoftBreak({ configuration }),\r\n      new DocPlainText({ configuration, text: ' \\t  ' }),\r\n      new DocPlainText({ configuration, text: '   ' }),\r\n      new DocBlockTag({ configuration, tagName: '@public' }),\r\n      new DocPlainText({ configuration, text: '  para 2 ' }),\r\n      new DocSoftBreak({ configuration }),\r\n      new DocSoftBreak({ configuration }),\r\n      new DocPlainText({ configuration, text: '  para 3  ' })\r\n    ]),\r\n    // Currently we do not discard empty paragraphs\r\n    new DocParagraph({ configuration })\r\n  ]);\r\n\r\n  ParagraphSplitter.splitParagraphsForSection(docSection);\r\n  expect(TestHelpers.getDocNodeSnapshot(docSection)).toMatchSnapshot();\r\n});\r\n"]}
 | 
			
		||||
							
								
								
									
										1
									
								
								node_modules/@microsoft/tsdoc/lib-commonjs/__tests__/ParsingBasics.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@microsoft/tsdoc/lib-commonjs/__tests__/ParsingBasics.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user