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

fix: Add defaults to console command generate #2862

Merged
merged 1 commit into from
Nov 22, 2017

Conversation

bhaskarmelkani
Copy link
Member

Add defaults to console command generate.

Related to #Issue

@coveralls
Copy link

coveralls commented Nov 20, 2017

Coverage Status

Coverage increased (+0.0007%) to 97.224% when pulling 87412bf on bhaskarmelkani:fix/generator-defaults into 41c517d on hexojs:master.

@bhaskarmelkani
Copy link
Member Author

Labelled bug as tests were not in sync with code.

Copy link
Collaborator

@JLHwung JLHwung left a 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 || {};
Copy link
Collaborator

@JLHwung JLHwung Nov 21, 2017

Choose a reason for hiding this comment

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

%s/generate\(\{\}\)/generate\(\)/g.

Copy link
Member Author

@bhaskarmelkani bhaskarmelkani Nov 21, 2017

Choose a reason for hiding this comment

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

Oh yeah, makes sense. 👍

@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+0.0007%) to 97.224% when pulling efb99f4 on bhaskarmelkani:fix/generator-defaults into 41c517d on hexojs:master.

@JLHwung JLHwung added this to the 3.4.2 milestone Nov 21, 2017
Copy link
Member

@NoahDragon NoahDragon left a comment

Choose a reason for hiding this comment

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

LGTM.

@JLHwung JLHwung merged commit 1aa55df into hexojs:master Nov 22, 2017
@JLHwung
Copy link
Collaborator

JLHwung commented Nov 22, 2017

Thank you so much for you contribution. Hexo can't be rock without contributors like you.

@bhaskarmelkani bhaskarmelkani deleted the fix/generator-defaults branch November 22, 2017 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants