From 7ed26927703d8ac6ba2a0578ab896bfed33b0163 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Mon, 1 Jul 2019 09:33:25 -0500 Subject: [PATCH] fix testing with node 4 --- test/helpers/load.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/helpers/load.js b/test/helpers/load.js index dc35427875..c49fd9c33e 100644 --- a/test/helpers/load.js +++ b/test/helpers/load.js @@ -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 }];