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

Testing helpers #10

Open
boudra opened this issue Feb 9, 2019 · 0 comments
Open

Testing helpers #10

boudra opened this issue Feb 9, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@boudra
Copy link
Owner

boudra commented Feb 9, 2019

Be able to test Programs without having to start Router supervision tree:

program = new(CounterProgram, %{})
{:ok, program} = update(program, {:increment, 1})

assert program.state == 1
assert select(view(program), "div > span.number") == "1"
@boudra boudra added the enhancement New feature or request label Feb 9, 2019
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