This repository has been archived on 2022-11-27. You can view files and clone it, but cannot push or open issues or pull requests.
activitypub/activity_test.go

18 lines
397 B
Go

package activitypub
import "testing"
func TestActivityNew(t *testing.T) {
var testValue = ObjectId("test")
var testType string = "Accept"
a := ActivityNew(testValue, testType)
if a.Id != testValue {
t.Errorf("Activity Id '%v' different than expected '%v'", a.Id, testValue)
}
if a.Type != testType {
t.Errorf("Activity Type '%v' different than expected '%v'", a.Type, testType)
}
}