mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-28 16:06:08 +00:00
12 lines
357 B
Go
12 lines
357 B
Go
package integration
|
|
|
|
import "testing"
|
|
|
|
func TestSlackEscapeKeepsLinksAndMentionsAsText(t *testing.T) {
|
|
in := "Re: <https://evil.example|Reset your password> & <!channel>"
|
|
want := "Re: <https://evil.example|Reset your password> & <!channel>"
|
|
if got := slackEscape(in); got != want {
|
|
t.Errorf("slackEscape = %q, want %q", got, want)
|
|
}
|
|
}
|