Files
mostlymatter/app/plugin/jira/webhook_test.go
Chris cb33179998 PLT-7758: jira url fix (#7536)
* jira url fix

* whoops, forgot a file (the test file)
2017-09-28 16:31:23 -04:00

17 строки
386 B
Go

package jira
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestWebhookJIRAURL(t *testing.T) {
var w Webhook
w.Issue.Self = "http://localhost:8080/rest/api/2/issue/10006"
assert.Equal(t, "http://localhost:8080", w.JIRAURL())
w.Issue.Self = "http://localhost:8080/foo/bar/rest/api/2/issue/10006"
assert.Equal(t, "http://localhost:8080/foo/bar", w.JIRAURL())
}