Basic test for :seen.

configurable-file-paths
Robert Gerus 2015-12-07 10:49:23 +01:00
parent 67ef252f77
commit 648e59acea
2 changed files with 19 additions and 0 deletions

View File

@ -8,5 +8,6 @@
"LinkTitlePrefix":"↳ title: ",
"LinkTitleDelimiter":" | ",
"SecuredChannels":["#securechan-1","#securechan-2"],
"NotSeenMessage":"nope, never",
"Nick":"gorepost"
}

View File

@ -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{