Skip to content

Commit 8ce0da4

Browse files
committed
replace object rest spread with Object.assign for node6 compat. (fix #1245)
1 parent 177d738 commit 8ce0da4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scenarios/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const isTest = exports.isTest = index !== -1
1111
const scenario = isTest && require(`./${scenarios[index]}.json`)
1212

1313
exports.addTestAnswers = (metalsmith, options, helpers) => {
14-
Object.assign(metalsmith.metadata(), {
15-
isNotTest: !isTest,
16-
...(isTest ? scenario : undefined)
17-
})
18-
// console.log(metalsmith.metadata())
14+
Object.assign(
15+
metalsmith.metadata(),
16+
{ isNotTest: !isTest },
17+
isTest ? scenario : {}
18+
)
1919
}

0 commit comments

Comments
 (0)