package events

import "testing"

func TestChangeRequestEventConstants(t *testing.T) {
	tests := map[string]string{
		"opened":  ChangeRequestOpened,
		"updated": ChangeRequestUpdated,
		"merged":  ChangeRequestMerged,
		"closed":  ChangeRequestClosed,
	}
	for name, eventType := range tests {
		if eventType == "" {
			t.Fatalf("%s event type should be set", name)
		}
	}
	if ChangeRequestClosed != "change_request.closed" {
		t.Fatalf("closed event: got %q", ChangeRequestClosed)
	}
}
