Add test for colors.go

This commit is contained in:
Theresa Gresch 2020-01-20 17:44:05 +01:00
parent 2c3d462390
commit 0260f1baa5

View file

@ -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)
})
}