We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177d738 commit 8ce0da4Copy full SHA for 8ce0da4
scenarios/index.js
@@ -11,9 +11,9 @@ const isTest = exports.isTest = index !== -1
11
const scenario = isTest && require(`./${scenarios[index]}.json`)
12
13
exports.addTestAnswers = (metalsmith, options, helpers) => {
14
- Object.assign(metalsmith.metadata(), {
15
- isNotTest: !isTest,
16
- ...(isTest ? scenario : undefined)
17
- })
18
- // console.log(metalsmith.metadata())
+ Object.assign(
+ metalsmith.metadata(),
+ { isNotTest: !isTest },
+ isTest ? scenario : {}
+ )
19
}
0 commit comments