mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
refactor(tests): fix minor code formatting issues
This commit is contained in:
parent
71054aaa89
commit
4d54d3dd52
1 changed files with 4 additions and 4 deletions
|
|
@ -26,9 +26,9 @@ func TestDeterminateImageType(t *testing.T) {
|
|||
buf, _ := ioutil.ReadAll(img)
|
||||
defer img.Close()
|
||||
|
||||
if VipsIsTypeSupported(file.expected) {
|
||||
if DetermineImageType(buf) != file.expected {
|
||||
t.Fatalf("Image type is not valid: %s != %s", file.name, ImageTypes[file.expected])
|
||||
if VipsIsTypeSupported(file.expected) {
|
||||
if DetermineImageType(buf) != file.expected {
|
||||
t.Fatalf("Image type is not valid: %s != %s", file.name, ImageTypes[file.expected])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -53,7 +53,7 @@ func TestDeterminateImageTypeName(t *testing.T) {
|
|||
buf, _ := ioutil.ReadAll(img)
|
||||
defer img.Close()
|
||||
|
||||
if DetermineImageTypeName(buf) != file.expected {
|
||||
if DetermineImageTypeName(buf) != file.expected {
|
||||
t.Fatalf("Image type is not valid: %s != %s", file.name, file.expected)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue