We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bc6e3f commit 7ed2692Copy full SHA for 7ed2692
test/helpers/load.js
@@ -79,12 +79,15 @@ function loadFiles(dir) {
79
switch (ext) {
80
case '.md': {
81
const content = fm(fs.readFileSync(absFile, 'utf8'));
82
- const { skip, only, ...options } = content.attributes;
+ const skip = content.attributes.skip;
83
+ delete content.attributes.skip;
84
+ const only = content.attributes.only;
85
+ delete content.attributes.only;
86
specs = [{
87
section: name,
88
markdown: content.body,
89
html: fs.readFileSync(absFile.replace(/[^.]+$/, 'html'), 'utf8'),
- options,
90
+ options: content.attributes,
91
only,
92
skip
93
}];
0 commit comments