Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
zookzook committed Oct 17, 2021
1 parent a2ab0b3 commit d2b52bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/mongo/encoder_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ defmodule Mongo.EncoderTest do

struct_to_insert = %CustomStructWithoutProtocol{a: 10, b: 20, c: 30, id: "x"}

assert {:ok, _} = Mongo.insert_one(c.pid, coll, struct_to_insert, [])
assert [%{"a" => 10, "b" => 20, "c" => 30, "id" => "x"}] = Mongo.find(c.pid, coll, %{}) |> Enum.to_list()
end

Expand Down

0 comments on commit d2b52bf

Please sign in to comment.