api-hogs / bureaucrat

Generate Phoenix API documentation from tests
https://hexdocs.pm/bureaucrat/api-reference.html
The Unlicense
368 stars 73 forks source link

Fixed documenting channels #73

Closed madatsci closed 3 years ago

madatsci commented 3 years ago

Got an error when using doc() for assert_push():

(KeyError) key :private not found in: %Phoenix.Socket.Message{event: "presence_state", join_ref: 29578, payload: %{uuids: ["9a17b8ea-9d6f-44e7-8ef7-ded250d723fd", "31a9ac03-640d-4368-b2c8-4271d14734a8"]}, ref: nil, topic: "presence:room"}

Here is a possible solution.

OpakAlex commented 3 years ago

Thanks!