How to test Commander code in my app
Open
level:advanced
- Dominant language
- Elixir
- Stars
- 878
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
Realised that I left that code untested and #52 crashed everything in production.
Assuming I have simple commander like this:
```elixir
defmodule FooCommander do
use Drab.Commander
def pres_buton(socket, _sender) do
Drab.Live.poke(socket, some_variable: "new value")
end
end
```
How can I test this code? Mainly to ensure nothing is crashing there.
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.