1
0
mirror of synced 2025-12-26 14:02:45 -05:00
Files
docs/tests/rendering/annotate.js
Kevin Heis b0e9bc314a Move annotate from Liquid to info string (#37651)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2023-06-08 19:25:23 +00:00

24 lines
657 B
JavaScript

import renderContent from '../../lib/render-content/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()
})
})