1
0
mirror of synced 2026-01-10 09:02:35 -05:00

repo sync

This commit is contained in:
Octomerger Bot
2021-01-27 07:17:59 +10:00
committed by GitHub

View File

@@ -11,6 +11,7 @@ const frontmatter = require('../../lib/frontmatter')
const languages = require('../../lib/languages')
const { tags } = require('../../lib/liquid-tags/extended-markdown')
const ghesReleaseNotesSchema = require('../../lib/release-notes-schema')
const renderContent = require('../../lib/render-content')
const rootDir = path.join(__dirname, '../..')
const contentDir = path.join(rootDir, 'content')
@@ -296,6 +297,15 @@ describe('lint-files', () => {
}
})
})
test('contains valid Liquid', async () => {
// If Liquid can't parse the file, it'll throw an error.
// For example, the following is invalid and will fail this test:
// {% if currentVersion ! "github-ae@latest" %}
await expect(renderContent.liquid.parse(content))
.resolves
.toBeTruthy()
})
}
)