View Source LiveViewModel.TestHelpers (live_view_model v0.1.0)

Summary

Functions

Asserts that state:change message is received over a channel matching the specified pattern

Asserts that state:patch message is received over a channel matching the specified pattern

Pushes a live state event over the channel

Functions

Link to this macro

assert_state_change(state)

View Source (macro)

Asserts that state:change message is received over a channel matching the specified pattern

Link to this macro

assert_state_patch(patch)

View Source (macro)

Asserts that state:patch message is received over a channel matching the specified pattern

Link to this function

send_event(socket, event, payload)

View Source

Pushes a live state event over the channel