Skip to content

Commit

Permalink
chore: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed May 19, 2024
1 parent 395d63c commit 3ce4959
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/markdown/tests/plugins/importCodePlugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,22 +282,4 @@ foo
expect(mockConsoleError).toHaveBeenCalledTimes(1)
})
})

// describe('compatibility with codePlugin', () => {
// it('should work with syntax supported by codePlugin', () => {
// const source = `\
// @[code js{1,3-4}](${jsFixturePathRelative})
// @[code md:no-line-numbers title="no-line-numbers.md"](${mdFixturePathRelative})
// `

// const md = MarkdownIt().use(importCodePlugin).use(codePlugin)
// const env: MarkdownEnv = {
// filePath: __filename,
// }
// const rendered = md.render(source, env)

// expect(rendered).toMatchSnapshot()
// expect(env.importedFiles).toEqual([jsFixturePath, mdFixturePath])
// })
// })
})

0 comments on commit 3ce4959

Please sign in to comment.