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: Add test for Rule class. #74

Merged
merged 2 commits into from
Aug 15, 2019

Conversation

lholmquist
Copy link
Contributor

  • This adds two tests for the Rules class testing the error conditions for when a rule does not have an id parameter or a validate function.

While going through #73 and #70 I noticed that this class was missing a couple test cases.

This should bring the test coverage up to 100% for that particular file

* This adds two tests for the Rules class testing the error conditions for when a rule does not have an id parameter or a validate function.
@codecov
Copy link

codecov bot commented Aug 2, 2019

Codecov Report

Merging #74 into master will increase coverage by 0.44%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
+ Coverage   57.14%   57.58%   +0.44%     
==========================================
  Files          18       18              
  Lines         448      448              
==========================================
+ Hits          256      258       +2     
+ Misses        192      190       -2
Impacted Files Coverage Δ
lib/rule.js 100% <0%> (+15.38%) ⬆️

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 479fe81...dd5ffe0. Read the comment docs.

test/rule-test.js Outdated Show resolved Hide resolved
@lholmquist lholmquist force-pushed the rules-tests-coverage branch from 4c45b9f to dd5ffe0 Compare August 5, 2019 19:23
@lholmquist
Copy link
Contributor Author

lholmquist commented Aug 5, 2019

i must have renamed the files before i sent the PR, but never closed the the old delete file in my editor, so that showed up in a commit. 🤷‍♂️

I forced pushed new changes based on the feedback about using tap.throws

@lholmquist
Copy link
Contributor Author

Not sure if this one got lost in the flurry of other PR's i sent in :)

Just a friendly ping

@richardlau richardlau merged commit a9f7439 into nodejs:master Aug 15, 2019
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.

3 participants