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

test: refactor and add missing tests, get coverage to 100% #156

Merged
merged 5 commits into from May 25, 2020

Conversation

remarkablemark
Copy link
Owner

@remarkablemark remarkablemark commented May 25, 2020

-------------------------|----------|----------|----------|----------|-------------------|
File                     |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
-------------------------|----------|----------|----------|----------|-------------------|
All files                |      100 |    97.85 |      100 |      100 |                   |
 html-react-parser       |      100 |      100 |      100 |      100 |                   |
  index.js               |      100 |      100 |      100 |      100 |                   |
 html-react-parser/lib   |      100 |     97.8 |      100 |      100 |                   |
  attributes-to-props.js |      100 |    95.65 |      100 |      100 |                85 |
  dom-to-react.js        |      100 |    97.44 |      100 |      100 |                38 |
  utilities.js           |      100 |      100 |      100 |      100 |                   |
-------------------------|----------|----------|----------|----------|-------------------|

This helps improve test coverage for `attributes-to-props.js`.

Move empty style test to its own it block.
Since it does not provide any value as style is either undefined,
null, or string.
@coveralls
Copy link

coveralls commented May 25, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling aeed1bf on test/coverage into d299826 on master.

Use `npx` so we can remove `coveralls` from devDependencies
@remarkablemark remarkablemark merged commit 74931e4 into master May 25, 2020
@remarkablemark remarkablemark deleted the test/coverage branch May 25, 2020 22:46
@remarkablemark
Copy link
Owner Author

Published 0.10.4:

npm:

npm i html-react-parser@0.10.4 -S

yarn:

yarn add html-react-parser@0.10.4

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.

None yet

2 participants