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

chore: add new tests to reach full test coverage #68

Merged
merged 1 commit into from
Feb 10, 2023
Merged

chore: add new tests to reach full test coverage #68

merged 1 commit into from
Feb 10, 2023

Conversation

janbritz
Copy link
Contributor

This PR removes a duplicate test and adds three tests to reach full code coverage.

The three test cases cover the following invalid inputs:

  • null
  • undefined
  • integer value

@janbritz janbritz requested a review from a team as a code owner February 10, 2023 12:07
@janbritz janbritz requested review from wraithgar and removed request for a team February 10, 2023 12:07
t.same(validate(42), {
validForNewPackages: false,
validForOldPackages: false,
errors: ['name must be a string'] })

t.same(validate(''), {
Copy link
Member

Choose a reason for hiding this comment

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

This is the duplicate for the test that was removed, for those following along.

@wraithgar wraithgar changed the title test: add new tests to reach full test coverage chore: add new tests to reach full test coverage Feb 10, 2023
@wraithgar
Copy link
Member

Thank you!

@wraithgar wraithgar merged commit 320e5dd into npm:main Feb 10, 2023
@github-actions github-actions bot mentioned this pull request Dec 4, 2023
@github-actions github-actions bot mentioned this pull request May 3, 2024
lukekarrys pushed a commit that referenced this pull request May 6, 2024
🤖 I have created a release *beep* *boop*
---


##
[5.0.1](v5.0.0...v5.0.1)
(2024-05-06)

### Dependencies

*
[`f12f849`](f12f849)
[#104](#104)
replace `builtins` dependency with Node.js `module.builtinModules`
(#104)

### Chores

*
[`f2b3233`](f2b3233)
[#112](#112) auto
publish (#112) (@lukekarrys)
*
[`406b31a`](406b31a)
[#110](#110) bump
@npmcli/template-oss to 4.22.0 (@lukekarrys)
*
[`bcc451a`](bcc451a)
[#69](#69) update
tap coverage in package.json (#69) (@wraithgar)
*
[`320e5dd`](320e5dd)
[#68](#68) add new
tests to reach full test coverage (#68) (@janbritz)
*
[`5c72411`](5c72411)
[#59](#59) bump
@npmcli/eslint-config from 3.1.0 to 4.0.0 (@dependabot[bot])
*
[`a893e39`](a893e39)
[#110](#110)
postinstall for dependabot template-oss PR (@lukekarrys)
*
[`13f9b85`](13f9b85)
[#109](#109) bump
@npmcli/template-oss from 4.21.3 to 4.21.4 (@dependabot[bot])

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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