mirror of
https://github.com/aykhans/slash-e.git
synced 2025-12-14 20:59:19 +00:00
chore: tweak plugin
This commit is contained in:
19
plugin/httpgetter/html_meta_test.go
Normal file
19
plugin/httpgetter/html_meta_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package httpgetter
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user