Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Change behaviour regarding controlled mode #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Andarist
Copy link
Collaborator

Possible changes regarding - #26

@@ -155,29 +155,28 @@ test('children can be an array (for preact support)', () => {

test('onToggle gets called in controlled prop scenario', () => {
const spy = jest.fn()
const {wrapper} = setup({on: false, onToggle: spy})
const {setOn, setOff, wrapper} = setup({on: false, onToggle: spy})
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I dont think I've edited this test when working on this PR - Ive done some branch changing, stashing etc so maybe this came from some other branch, gonna investigate it later

@codecov
Copy link

codecov bot commented Nov 22, 2018

Codecov Report

Merging #27 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #27   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          20     21    +1     
  Branches        8      8           
=====================================
+ Hits           20     21    +1
Impacted Files Coverage Δ
src/index.js 100% <100%> (ø) ⬆️

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 8452a1f...fcc8633. Read the comment docs.

@therealparmesh
Copy link
Collaborator

Is there a blocker for this PR?

@kentcdodds
Copy link
Owner

Sorry, this slipped away from me somehow. Also I never even used this project (it was an experiment/demo) so I'm totally the wrong person to maintain it. Anyone want to take it over?

@therealparmesh
Copy link
Collaborator

therealparmesh commented Mar 7, 2019

No worries. At the company I'm working for we use this library and we make copious use of the type of patterns promulgated here. 😀

@kentcdodds I'd be interested in helping to maintain this in case others are in the same boat.

@kentcdodds
Copy link
Owner

Totally, it's all yours @therealparmesh.

To transition this over to you, I'm going to remove my npm and github token from travis which will disable the auto-releases. You can re-enable that yourself if you like.

Please let me know your npm username and I'll add you as a collaborator there.

This may also be helpful to you: https://kcd.im/write-oss

Let me know if you have any other questions.

@therealparmesh
Copy link
Collaborator

therealparmesh commented Mar 8, 2019

@kentcdodds I will do my best to find other quality maintainers and to keep this to the standard that you're setting.

My npm username is therealparmesh. Thank you! 👍

@kentcdodds
Copy link
Owner

Awesome. I've added you to npm and github.

I'm going to stop watching the repo now. Good luck!

@therealparmesh
Copy link
Collaborator

@Andarist Do you still think this PR is worth moving forward on?

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

3 participants