Skip to content

Commit fc54b4d

Browse files
committed
Fix lint errors
1 parent aeedfac commit fc54b4d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
test-group: [content, meta, rendering, routing, unit, links-and-images, graphql]
39+
test-group:
40+
[content, meta, rendering, routing, unit, links-and-images, graphql]
4041
steps:
4142
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
4243
# Even if if doesn't do anything

tests/graphql/build-changelog-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const yaml = require('js-yaml')
22
const { createChangelogEntry, cleanPreviewTitle, previewAnchor, prependDatedEntry } = require('../../script/graphql/build-changelog')
33
const fs = require('fs')
4-
const MockDate = require("mockdate")
4+
const MockDate = require('mockdate')
55
const expectedChangelogEntry = require('../fixtures/changelog-entry')
66
const expectedUpdatedChangelogFile = require('../fixtures/updated-changelog-file')
77

@@ -116,15 +116,14 @@ describe('updating the changelog file', () => {
116116
const previousContents = fs.readFileSync(testTargetPath)
117117

118118
const exampleEntry = { someStuff: true }
119-
const expectedDate = "2020-11-20"
119+
const expectedDate = '2020-11-20'
120120
MockDate.set(expectedDate)
121121

122122
prependDatedEntry(exampleEntry, testTargetPath)
123123
const newContents = fs.readFileSync(testTargetPath, 'utf8')
124124
// reset the file:
125125
fs.writeFileSync(testTargetPath, previousContents)
126126

127-
128127
expect(exampleEntry).toEqual({ someStuff: true, date: expectedDate })
129128
expect(JSON.parse(newContents)).toEqual(expectedUpdatedChangelogFile)
130129
})

0 commit comments

Comments
 (0)