Skip to content

Commit 7ed2692

Browse files
committed
fix testing with node 4
1 parent 7bc6e3f commit 7ed2692

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/helpers/load.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,15 @@ function loadFiles(dir) {
7979
switch (ext) {
8080
case '.md': {
8181
const content = fm(fs.readFileSync(absFile, 'utf8'));
82-
const { skip, only, ...options } = content.attributes;
82+
const skip = content.attributes.skip;
83+
delete content.attributes.skip;
84+
const only = content.attributes.only;
85+
delete content.attributes.only;
8386
specs = [{
8487
section: name,
8588
markdown: content.body,
8689
html: fs.readFileSync(absFile.replace(/[^.]+$/, 'html'), 'utf8'),
87-
options,
90+
options: content.attributes,
8891
only,
8992
skip
9093
}];

0 commit comments

Comments
 (0)