Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Commit

Permalink
Add a simple test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Gerus committed Dec 16, 2015
1 parent 52dee8a commit 1d8d793
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bot/plugins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,18 @@ var variableOutputTestEvents = []struct {
outRegex: *regexp.MustCompile("^bonjour [(]nsfw[)]: http://.*"),
function: bonjour,
},
{
in: irc.Message{
Command: "PRIVMSG",
Trailing: ":korwin",
Params: []string{"#testchan-1"},
Prefix: &irc.Prefix{
Name: "idontexist",
},
},
outRegex: *regexp.MustCompile("^."),
function: korwin,
},
{
in: irc.Message{
Command: "PRIVMSG",
Expand Down

0 comments on commit 1d8d793

Please sign in to comment.