add test for MarshalJSON function

This commit is contained in:
Kent Gruber 2018-05-02 13:16:49 -04:00
parent 889df698d1
commit ec3227a16f

View file

@ -16,3 +16,10 @@ func TestNewMeta(t *testing.T) {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}
func TestMetaMarshalJSON(t *testing.T) {
_, err := buildExampleMeta().MarshalJSON()
if err != nil {
t.Error("unable to marshal JSON from meta struct")
}
}