grych / grych/drab

How to test Commander code in my app

Open
#53 4 comments 0 reactions 1 assignee Claimed by @grych View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.