Skip to content

Add support for multiple md files - #9

Open
ivn-cote wants to merge 3 commits into
paprikka:masterfrom
ivn-cote:master
Open

Add support for multiple md files#9
ivn-cote wants to merge 3 commits into
paprikka:masterfrom
ivn-cote:master

Conversation

@ivn-cote

Copy link
Copy Markdown

Addressing #8

@paprikka paprikka left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, added two minor changes, otherwise everything looks good. I've run this on a Win and *nix and everthing works smooth. If you publish an update on Mon, I should be able to merge the PR this week, otherwise I'll have some spare time on 01/05, so can merge and publish the NPM package then. Thanks a lot!

Comment thread src/get-docs.js
exclude: /^\./
},
function(err, content, next) {
if (err) throw err

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we swap this for reject(err)? Using a throw statement here might break promise chaining/catching.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, can we cover this bit with a unit test case, i.e. mocking readFiles to throw an exception here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants