mirror of
https://github.com/usememos/memos.git
synced 2024-12-21 10:11:42 +03:00
2d49e96a8a
* feat: get image blob in backend * chore: update
22 lines
314 B
Go
22 lines
314 B
Go
package getter
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetImage(t *testing.T) {
|
|
tests := []struct {
|
|
urlStr string
|
|
}{
|
|
{
|
|
urlStr: "https://star-history.com/bytebase.webp",
|
|
},
|
|
}
|
|
for _, test := range tests {
|
|
_, err := GetImage(test.urlStr)
|
|
require.NoError(t, err)
|
|
}
|
|
}
|