File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const frontmatter = require('../../lib/frontmatter')
1111const languages = require ( '../../lib/languages' )
1212const { tags } = require ( '../../lib/liquid-tags/extended-markdown' )
1313const ghesReleaseNotesSchema = require ( '../../lib/release-notes-schema' )
14+ const renderContent = require ( '../../lib/render-content' )
1415
1516const rootDir = path . join ( __dirname , '../..' )
1617const contentDir = path . join ( rootDir , 'content' )
@@ -296,6 +297,15 @@ describe('lint-files', () => {
296297 }
297298 } )
298299 } )
300+
301+ test ( 'contains valid Liquid' , async ( ) => {
302+ // If Liquid can't parse the file, it'll throw an error.
303+ // For example, the following is invalid and will fail this test:
304+ // {% if currentVersion ! "github-ae@latest" % }
305+ await expect ( renderContent . liquid . parse ( content ) )
306+ . resolves
307+ . toBeTruthy ( )
308+ } )
299309 }
300310 )
301311
You can’t perform that action at this time.
0 commit comments