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/object_id_test.go
2019-12-05 19:02:15 +01:00

13 lines
254 B
Go

package activitypub
import "testing"
func TestObjectID_UnmarshalJSON(t *testing.T) {
o := ID("")
dataEmpty := []byte("")
o.UnmarshalJSON(dataEmpty)
if o != "" {
t.Errorf("Unmarshaled object %T should be an empty string, received %q", o, o)
}
}