Skip to content

refactor: server #1847

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

Merged
merged 1 commit into from
May 6, 2019
Merged

refactor: server #1847

merged 1 commit into from
May 6, 2019

Conversation

alexander-akait
Copy link
Member

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Not required

Motivation / Use-Case

Refactor code (part 1 of 3)

Breaking Changes

No

Additional Info

No

@alexander-akait alexander-akait requested a review from hiroppy as a code owner May 6, 2019 15:53
} else {
}

if (!certExists) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Regression in previously refactor, need add tests (will be done in other PR)

);
}

setupFeatures() {
Copy link
Member Author

Choose a reason for hiding this comment

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

No options, we in class so we can use this


(this.options.features || defaultFeatures).forEach((feature) => {
features[feature]();
});
Copy link
Member Author

@alexander-akait alexander-akait May 6, 2019

Choose a reason for hiding this comment

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

Also we initialize features in this method (all in one place)

@codecov
Copy link

codecov bot commented May 6, 2019

Codecov Report

Merging #1847 into master will decrease coverage by 0.02%.
The diff coverage is 89.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1847      +/-   ##
==========================================
- Coverage   89.25%   89.22%   -0.03%     
==========================================
  Files          10       10              
  Lines         614      622       +8     
  Branches      186      187       +1     
==========================================
+ Hits          548      555       +7     
- Misses         54       55       +1     
  Partials       12       12
Impacted Files Coverage Δ
lib/Server.js 84.89% <89.47%> (+0.05%) ⬆️

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 1aa798d...de4acc7. Read the comment docs.

@alexander-akait
Copy link
Member Author

/cc @hiroppy I merge to continue working and do release, feel free to feedback and open a issue/send a PR if you find something wrong

@alexander-akait alexander-akait merged commit a1cdd2a into master May 6, 2019
@alexander-akait alexander-akait deleted the refactor-server branch May 6, 2019 16:15
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.

1 participant