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/unmarshalling_test.go

15 lines
258 B
Go
Raw Normal View History

package activitystreams
import "testing"
func TestUnmarshalJSON(t *testing.T) {
dataEmpty := []byte("{}")
i, err := UnmarshalJSON(dataEmpty)
if err != nil {
t.Errorf("invalid unmarshalling %s", err)
}
o := *i.(*Object)
validateEmptyObject(o, t)
}