owl-blogs/domain/model/binary_file_test.go

14 lines
232 B
Go
Raw Normal View History

2023-07-09 17:09:54 +00:00
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())
}