Skip to content

Commit

Permalink
fix testing with node 4
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Jul 1, 2019
1 parent 7bc6e3f commit 7ed2692
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/helpers/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,15 @@ function loadFiles(dir) {
switch (ext) {
case '.md': {
const content = fm(fs.readFileSync(absFile, 'utf8'));
const { skip, only, ...options } = content.attributes;
const skip = content.attributes.skip;
delete content.attributes.skip;
const only = content.attributes.only;
delete content.attributes.only;
specs = [{
section: name,
markdown: content.body,
html: fs.readFileSync(absFile.replace(/[^.]+$/, 'html'), 'utf8'),
options,
options: content.attributes,
only,
skip
}];
Expand Down

0 comments on commit 7ed2692

Please sign in to comment.