Skip to content

Commit

Permalink
style(Channel): recommit with LF line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC committed Nov 1, 2018
1 parent ce181fd commit 1626ab1
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion test/structs/message.test.exs → test/structs/message_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
defmodule Crux.Structs.MessageTest do
use ExUnit.Case, async: true

doctest Crux.Structs.Message

test "create" do
Expand All @@ -12,6 +13,13 @@ defmodule Crux.Structs.MessageTest do
"id" => "218348062828003328",
"username" => "space"
},
"member" => %{
"roles" => ["222442681798885376", "273204842510548993", "376146940762783746"],
"nick" => "nickname",
"mute" => false,
"joined_at" => "2017-03-30T20:11:13.456000+00:00",
"deaf" => false
},
"channel_id" => "250372608284033025",
"content" => "hello there!",
"edited_timestamp" => nil,
Expand All @@ -35,6 +43,19 @@ defmodule Crux.Structs.MessageTest do
avatar: "646a356e237350bf8b8dfde15667dfc4",
id: 218_348_062_828_003_328
},
member: %Crux.Structs.Member{
roles:
MapSet.new([
222_442_681_798_885_376,
273_204_842_510_548_993,
376_146_940_762_783_746
]),
nick: "nickname",
mute: false,
joined_at: "2017-03-30T20:11:13.456000+00:00",
deaf: false,
user: 218_348_062_828_003_328
},
channel_id: 250_372_608_284_033_025,
content: "hello there!",
edited_timestamp: nil,
Expand All @@ -50,7 +71,7 @@ defmodule Crux.Structs.MessageTest do
}
end

def "to_string returns content" do
test "to_string returns content" do
stringified =
%Crux.Structs.Message{content: "hello there!"}
|> to_string()
Expand Down

0 comments on commit 1626ab1

Please sign in to comment.