14 lines
232 B
Go
14 lines
232 B
Go
|
package model_test
|
||
|
|
||
|
import (
|
||
|
"owl-blogs/domain/model"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestMimeType(t *testing.T) {
|
||
|
bin := model.BinaryFile{Name: "test.jpg"}
|
||
|
require.Equal(t, "image/jpeg", bin.Mime())
|
||
|
}
|