mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-14 18:05:55 -07:00
refactor(type)
This commit is contained in:
parent
5e47888d78
commit
da8c9707c9
3 changed files with 7 additions and 15 deletions
|
|
@ -2,7 +2,6 @@ package bimg
|
|||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
|
@ -25,9 +24,7 @@ func TestResize(t *testing.T) {
|
|||
t.Errorf("Resize(imgData, %#v) error: %#v", options, err)
|
||||
}
|
||||
|
||||
debug("Image %s", http.DetectContentType(newImg))
|
||||
|
||||
if http.DetectContentType(newImg) != "image/jpeg" {
|
||||
if DetermineType(newImg) != JPEG {
|
||||
t.Fatal("Image is not jpeg")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue