Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahs committed Dec 1, 2020
1 parent b244d44 commit 6304c86
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/warm-server.js
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ async function warmServer () {
}

// Promise.all is used to load multiple things in parallel
;[pages, site] = await Promise.all([
[pages, site] = await Promise.all([
require('./pages')(),
require('./site-data')()
])
3 changes: 2 additions & 1 deletion tests/content/lint-files.js
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ const fs = require('fs')
const walk = require('walk-sync')
const { zip } = require('lodash')
const yaml = require('js-yaml')
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')
@@ -167,7 +168,7 @@ describe('lint-files', () => {

beforeAll(async () => {
const fileContents = await fs.promises.readFile(markdownAbsPath, 'utf8')
const { data, content: bodyContent } = matter(fileContents)
const { data, content: bodyContent } = frontmatter(fileContents)

content = bodyContent
isHidden = data.hidden === true

0 comments on commit 6304c86

Please sign in to comment.