mirror of
https://github.com/usememos/memos.git
synced 2024-12-27 15:42:51 +08:00
c7a57191bd
* feat: add jwt auth * chore: update
19 lines
330 B
Go
19 lines
330 B
Go
package getter
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetHTMLMeta(t *testing.T) {
|
|
tests := []struct {
|
|
urlStr string
|
|
htmlMeta HTMLMeta
|
|
}{}
|
|
for _, test := range tests {
|
|
metadata, err := GetHTMLMeta(test.urlStr)
|
|
require.NoError(t, err)
|
|
require.Equal(t, test.htmlMeta, *metadata)
|
|
}
|
|
}
|