diff --git a/type_test.go b/type_test.go index 1f8cdc2..410a095 100644 --- a/type_test.go +++ b/type_test.go @@ -151,3 +151,10 @@ func TestNewDocumentFromReader(t *testing.T) { } } } + +func TestNewDocumentFromResponseNil(t *testing.T) { + _, e := NewDocumentFromResponse(nil) + if e == nil { + t.Error("Expected error, got none") + } +}