diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2017-01-23 22:43:35 +0300 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2017-01-23 22:43:35 +0300 |
commit | 5183f7724d7fd7a0e3499760e1016a5751f0729c (patch) | |
tree | 7f0804cb422cd432253490f0bc7d3abeb4cda36b /test | |
parent | 0c57044c5994fa5bfb383a06ec4d5da27875874f (diff) |
Fix tests
Diffstat (limited to 'test')
-rw-r--r-- | test/mod_admin_extra_test.exs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/mod_admin_extra_test.exs b/test/mod_admin_extra_test.exs index 23d708498..f5d0b33f3 100644 --- a/test/mod_admin_extra_test.exs +++ b/test/mod_admin_extra_test.exs @@ -257,8 +257,8 @@ defmodule EjabberdModAdminExtraTest do jid = :jlib.make_jid(@user, @domain, @resource) assert 1 == :meck.num_calls(:ejabberd_sm, :route, - [jid, jid, - {:broadcast, {:item, {@user<>"1", @domain, ""}, :both}}]) + [jid, + {:item, {@user<>"1", @domain, ""}, :both}]) assert :ok == :ejabberd_commands.execute_command(:add_rosteritem, [@user, @domain, @@ -274,8 +274,8 @@ defmodule EjabberdModAdminExtraTest do # 'both' to user online ressource assert 1 == :meck.num_calls(:ejabberd_sm, :route, - [jid, jid, - {:broadcast, {:item, {@user<>"2", @domain, ""}, :both}}]) + [jid, + {:item, {@user<>"2", @domain, ""}, :both}]) :ejabberd_commands.execute_command(:delete_rosteritem, [@user, @domain, @@ -293,8 +293,8 @@ defmodule EjabberdModAdminExtraTest do jid = :jlib.make_jid(@user, @domain, @resource) assert 1 == :meck.num_calls(:ejabberd_sm, :route, - [jid, jid, - {:broadcast, {:item, {@user<>"1", @domain, ""}, :none}}]) + [jid, + {:item, {@user<>"1", @domain, ""}, :none}]) :ejabberd_commands.execute_command(:delete_rosteritem, [@user, @domain, @user<>"2", @domain]) @@ -303,16 +303,16 @@ defmodule EjabberdModAdminExtraTest do # 'none' to user online ressource assert 1 == :meck.num_calls(:ejabberd_sm, :route, - [jid, jid, - {:broadcast, {:item, {@user<>"2", @domain, ""}, :none}}]) + [jid, + {:item, {@user<>"2", @domain, ""}, :none}]) # Check that nothing else was pushed to user resource jid = jid(user: @user, server: @domain, resource: :_, luser: @user, lserver: @domain, lresource: :_) assert 4 == :meck.num_calls(:ejabberd_sm, :route, - [jid, jid, - {:broadcast, {:item, :_, :_}}]) + [jid, + {:item, :_, :_}]) assert [] == ModRosterMock.get_roster(@user, @domain) assert :meck.validate :ejabberd_sm |