-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix: Add defaults to console command generate #2862
Conversation
Labelled bug as tests were not in sync with code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please substitute the generate({})
signature.
@@ -20,7 +20,6 @@ describe('generate', () => { | |||
afterEach(() => fs.rmdir(hexo.base_dir)); | |||
|
|||
function testGenerate(options) { | |||
options = options || {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%s/generate\(\{\}\)/generate\(\)/g
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, makes sense. 👍
87412bf
to
efb99f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thank you so much for you contribution. Hexo can't be rock without contributors like you. |
Add defaults to console command
generate
.Related to #Issue