Basic test for :seen.
parent
67ef252f77
commit
648e59acea
|
@ -8,5 +8,6 @@
|
|||
"LinkTitlePrefix":"↳ title: ",
|
||||
"LinkTitleDelimiter":" | ",
|
||||
"SecuredChannels":["#securechan-1","#securechan-2"],
|
||||
"NotSeenMessage":"nope, never",
|
||||
"Nick":"gorepost"
|
||||
}
|
||||
|
|
|
@ -238,6 +238,24 @@ var eventTests = []struct {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "seen noone",
|
||||
in: irc.Message{
|
||||
Command: "PRIVMSG",
|
||||
Trailing: "http://arachnist.is-a.cat/test.html",
|
||||
Params: []string{"#testchan-1"},
|
||||
Prefix: &irc.Prefix{
|
||||
Name: "idontexist",
|
||||
},
|
||||
},
|
||||
expectedOut: []irc.Message{
|
||||
{
|
||||
Command: "PRIVMSG",
|
||||
Params: []string{"#testchan-1"},
|
||||
Trailing: "nope, never",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "linktitle missing title",
|
||||
in: irc.Message{
|
||||
|
|
Loading…
Reference in New Issue