1
0
mirror of synced 2025-12-25 02:17:36 -05:00
Files
docs/tests/rendering/annotate.js
2023-06-26 18:48:29 +00:00

24 lines
656 B
JavaScript

import { renderContent } from '#src/content-render/index.js'
const example = `
\`\`\`yaml annotate
# The name of the workflow as it will appear in the "Actions" tab of the GitHub repository.
name: Post welcome comment
# Add the \`pull_request\` event, so that the workflow runs automatically
# every time a pull request is created.
on:
pull_request:
types: [opened]
\`\`\`
`
describe('annotate', () => {
test('renders annotations', async () => {
// We don't normally use snapshots,
// but in this case its a short and concise example
// that won't change regularly.
expect(await renderContent(example)).toMatchSnapshot()
})
})