File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed
Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -142,42 +142,6 @@ describe('Playground Link Extraction', () => {
142142 expect ( result . playgroundLinks ) . toHaveLength ( 1 )
143143 expect ( result . playgroundLinks [ 0 ] ! . provider ) . toBe ( 'stackblitz' )
144144 } )
145-
146- it ( 'returns raw markdown content' , async ( ) => {
147- const markdown = `# Test Package
148-
149- ## Installation
150-
151- \`\`\`bash
152- npm install test-package
153- \`\`\`
154-
155- ## Usage
156-
157- This is a sample package for testing.
158-
159- > [!NOTE]
160- > This is a note callout.
161-
162- - Feature one
163- - Feature two
164- `
165- const result = await renderReadmeHtml ( markdown , 'test-pkg' )
166-
167- expect ( result . markdown ) . toBe ( markdown )
168- expect ( result . markdown ) . toContain ( '# Test Package' )
169- expect ( result . markdown ) . toContain ( '## Installation' )
170- expect ( result . markdown ) . toContain ( 'npm install test-package' )
171- } )
172-
173- it ( 'returns empty string for empty content' , async ( ) => {
174- const result = await renderReadmeHtml ( '' , 'test-pkg' )
175-
176- expect ( result . markdown ) . toBe ( '' )
177- expect ( result . html ) . toBe ( '' )
178- expect ( result . playgroundLinks ) . toEqual ( [ ] )
179- expect ( result . toc ) . toEqual ( [ ] )
180- } )
181145 } )
182146} )
183147
You can’t perform that action at this time.
0 commit comments