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

mount #9

Closed
diegohaz opened this issue Apr 26, 2018 · 0 comments
Closed

mount #9

diegohaz opened this issue Apr 26, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@diegohaz
Copy link
Owner

diegohaz commented Apr 26, 2018

import { mount } from "constate";
import CounterContainer from "./CounterContainer";

const counter = mount(CounterContainer);

expect(counter.count).toBe(0);

counter.increment(10);

expect(counter.count).toBe(10);
@diegohaz diegohaz added the enhancement New feature or request label Apr 26, 2018
@diegohaz diegohaz changed the title Create mockState test helper mount May 17, 2018
@diegohaz diegohaz mentioned this issue May 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant