From 0260f1baa5e8a21fb7df6cf0c7103df5b84c89b7 Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Mon, 20 Jan 2020 17:44:05 +0100 Subject: [PATCH] Add test for colors.go --- internal/photoprism/colors_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/photoprism/colors_test.go b/internal/photoprism/colors_test.go index 31377c618..3166ce4c2 100644 --- a/internal/photoprism/colors_test.go +++ b/internal/photoprism/colors_test.go @@ -167,4 +167,12 @@ func TestMediaFile_Colors(t *testing.T) { t.Error(err) } }) + + t.Run("Random.docx", func(t *testing.T) { + mediaFile, err := NewMediaFile(conf.ExamplesPath() + "/Random.docx") + p, err := mediaFile.Colors(conf.ThumbnailsPath()) + assert.Error(t, err, "no color information: not a JPEG file") + t.Log(p) + + }) }