Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

refactor: use functionality from commons package #22

Merged
merged 1 commit into from Feb 2, 2019
Merged

Conversation

mgred
Copy link
Contributor

@mgred mgred commented Feb 2, 2019

Purpose (TL;DR) - mandatory

  • add @sinonjs/commons
  • replace functionName method with implementation from @sinonjs/commons
  • use typeOf for array identification

How to verify - mandatory

  1. Check out this branch
  2. npm install
  3. npm test

Checklist for author

  • npm run lint passes
  • References to standard library functions are cached.

* add @sinonjs/commons
* use functionName method
* use typeOf for array identification
@mgred mgred self-assigned this Feb 2, 2019
mgred added a commit to sinonjs/samsam that referenced this pull request Feb 2, 2019
This is for a refactoring in formatio to use the provided isSet method
from samsam
See: sinonjs/formatio#22
@coveralls
Copy link

Pull Request Test Coverage Report for Build 87

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 11 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 82.126%

Files with Coverage Reduction New Missed Lines %
formatio.js 11 82.13%
Totals Coverage Status
Change from base Build 83: -0.3%
Covered Lines: 92
Relevant Lines: 110

💛 - Coveralls

@mgred mgred mentioned this pull request Feb 2, 2019
2 tasks
@mgred
Copy link
Contributor Author

mgred commented Feb 2, 2019

Think it would make sense to replace this condition with the isSet method from samsam and therefore created sinonjs/samsam#58 as well.

@mgred mgred changed the title refactor: use functionality from commons package [WIP] refactor: use functionality from commons package Feb 2, 2019
Copy link
Member

@mantoni mantoni left a comment

Choose a reason for hiding this comment

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

👍

mgred added a commit to sinonjs/samsam that referenced this pull request Feb 2, 2019
This is for a refactoring in formatio to use the provided isSet method
from samsam
See: sinonjs/formatio#22
@mgred mgred changed the title [WIP] refactor: use functionality from commons package refactor: use functionality from commons package Feb 2, 2019
@mgred mgred merged commit 9824147 into master Feb 2, 2019
@mgred
Copy link
Contributor Author

mgred commented Feb 2, 2019

Thanks @mantoni

I will create another PR to use the isSet method which depends on the next samsam release anyways 🚀

@mantoni
Copy link
Member

mantoni commented Feb 3, 2019

@mgred Let me know if you want me to cut releases. I don’t know if you can do them yourself?

@mgred
Copy link
Contributor Author

mgred commented Feb 4, 2019

Hey @mantoni I can't. Would be nice if you can get this into the wild 👍

@mgred mgred deleted the use-commons branch February 4, 2019 09:53
@mroderick
Copy link
Member

@mantoni did you make a release of this?

@mantoni
Copy link
Member

mantoni commented Feb 27, 2019

Ah, I think I did one for samsam and I understood that there is more work coming with an additional PR before this should be released. @mgred ?

@mgred
Copy link
Contributor Author

mgred commented Feb 27, 2019

Yes this is realeased in sinonjs/samsam#58. The method is already in use since #23 landed, so I think we're good to go with a release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants