Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change order of fallbacks for renderFileAsync #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gijswijs
Copy link

@gijswijs gijswijs commented Apr 4, 2019

This PR can be considered a question in the form of a PR. Sometimes just plain code conveys a question better. If the answer to my question is 'yes' than the PR can be merged.

The documentation gives the impression that the fallback for a method
follows a certain order. For renderFileAsync that order should then be

  • .renderFileAsync
  • .renderFile
  • .renderAsync
  • .render
  • .compileFileAsync
  • .compileFile
  • .compileAsync
  • .compile

This commit makes the code follow that order.

Am I correct in assuming that the fallback should be in the order described in the documentation?

The documentation gives the impression that the fallback for a method
follows a certain order. For renderFileAsync that order should then be

* `.renderFileAsync`
* `.renderFile`
* `.renderAsync`
* `.render`
* `.compileFileAsync`
* `.compileFile`
* `.compileAsync`
* `.compile`

This commit makes the code follow that order
@codecov-io
Copy link

codecov-io commented Apr 4, 2019

Codecov Report

Merging #220 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
- Coverage   98.05%   98.04%   -0.01%     
==========================================
  Files           1        1              
  Lines         206      205       -1     
  Branches       73       72       -1     
==========================================
- Hits          202      201       -1     
  Misses          4        4
Impacted Files Coverage Δ
index.js 98.04% <100%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69fd94c...8a511e2. Read the comment docs.

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