Add test for colors.go
This commit is contained in:
parent
2c3d462390
commit
0260f1baa5
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue