1- defmodule GroupherServer.Test.Query .Accounts.Mailbox do
1+ defmodule GroupherServer.Test.Mutaion .Accounts.Mailbox do
22 use GroupherServer.TestTools
33
44 alias GroupherServer.Delivery
@@ -30,7 +30,7 @@ defmodule GroupherServer.Test.Query.Accounts.Mailbox do
3030 mention = mentions . entries |> List . first ( )
3131
3232 variables = % { ids: [ mention . id ] , type: "MENTION" }
33- result = user_conn |> mutation_result ( @ query , variables , "markRead" )
33+ user_conn |> mutation_result ( @ query , variables , "markRead" )
3434
3535 { :ok , mentions } = Delivery . fetch ( :mention , user , % { page: 1 , size: 10 , read: true } )
3636 mention = mentions . entries |> List . first ( )
@@ -44,7 +44,7 @@ defmodule GroupherServer.Test.Query.Accounts.Mailbox do
4444 notify = notifications . entries |> List . first ( )
4545
4646 variables = % { ids: [ notify . id ] , type: "NOTIFICATION" }
47- result = user_conn |> mutation_result ( @ query , variables , "markRead" )
47+ user_conn |> mutation_result ( @ query , variables , "markRead" )
4848
4949 { :ok , notifications } = Delivery . fetch ( :notification , user , % { page: 1 , size: 10 , read: true } )
5050 notify = notifications . entries |> List . first ( )
@@ -68,7 +68,7 @@ defmodule GroupherServer.Test.Query.Accounts.Mailbox do
6868 assert mentions . total_count == 2
6969
7070 variables = % { type: "MENTION" }
71- result = user_conn |> mutation_result ( @ query , variables , "markReadAll" )
71+ user_conn |> mutation_result ( @ query , variables , "markReadAll" )
7272
7373 { :ok , mentions } = Delivery . fetch ( :mention , user , % { page: 1 , size: 10 , read: true } )
7474 assert mentions . total_count == 2
@@ -81,7 +81,7 @@ defmodule GroupherServer.Test.Query.Accounts.Mailbox do
8181 assert notifications . total_count == 1
8282
8383 variables = % { type: "NOTIFICATION" }
84- result = user_conn |> mutation_result ( @ query , variables , "markReadAll" )
84+ user_conn |> mutation_result ( @ query , variables , "markReadAll" )
8585
8686 { :ok , notifications } = Delivery . fetch ( :notification , user , % { page: 1 , size: 10 , read: true } )
8787 assert notifications . total_count == 1
0 commit comments