Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
mederic committed Apr 18, 2019
1 parent 7407761 commit 291fbef
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -73,10 +73,16 @@ defmodule AdminAPI.V1.ExchangePairControllerTest do
assert Enum.count(exchange_pairs) == 2

assert Enum.any?(exchange_pairs, fn exg -> exg["opposite_exchange_pair_id"] == pair_2.id end)
assert Enum.any?(exchange_pairs, fn exg -> exg["opposite_exchange_pair"]["id"] == pair_2.id end)

assert Enum.any?(exchange_pairs, fn exg ->
exg["opposite_exchange_pair"]["id"] == pair_2.id
end)

assert Enum.any?(exchange_pairs, fn exg -> exg["opposite_exchange_pair_id"] == pair_1.id end)
assert Enum.any?(exchange_pairs, fn exg -> exg["opposite_exchange_pair"]["id"] == pair_1.id end)

assert Enum.any?(exchange_pairs, fn exg ->
exg["opposite_exchange_pair"]["id"] == pair_1.id
end)
end

test_supports_match_any("/exchange_pair.all", :exchange_pair, :id)
Expand Down

0 comments on commit 291fbef

Please sign in to comment.