-module(chloe_session_test).

-include_lib("eunit/include/eunit.hrl").

send_to_browser_test() ->
    {ok, MockPid} = gen_server_mock:new(),
    gen_server_mock:expect_cast(MockPid, fun({send, "some test data"}, State) ->
                {ok, State}
        end),

    {ok, SessionPid} = chloe_session:start_link(MockPid),
    chloe_session:send_to_browser(SessionPid, "some test data"),
    gen_server_mock:assert_expectations(MockPid).

Test that we send data to the browser
Test that we send data to the browser
