Fix linting
This commit is contained in:
parent
0feab5c6a7
commit
8d9b85f103
|
@ -22,16 +22,16 @@ type GiphyOembedData struct {
|
|||
ProviderName string `json:"provider_name"`
|
||||
Title string `json:"title"`
|
||||
URL string `json:"url"`
|
||||
Height int `json:"height"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Width int `json:"width"`
|
||||
}
|
||||
|
||||
type TenorOembedData struct {
|
||||
ProviderName string `json:"provider_name"`
|
||||
ThumbnailURL string `json:"thumbnail_url"`
|
||||
AuthorName string `json:"author_name"`
|
||||
Height int `json:"height"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Width int `json:"width"`
|
||||
}
|
||||
|
||||
type LinkPreviewData struct {
|
||||
|
@ -39,8 +39,8 @@ type LinkPreviewData struct {
|
|||
Title string `json:"title" meta:"og:title"`
|
||||
ThumbnailURL string `json:"thumbnailUrl" meta:"og:image"`
|
||||
ContentType string `json:"contentType"`
|
||||
Height int `json:"height"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Width int `json:"width"`
|
||||
}
|
||||
|
||||
type Site struct {
|
||||
|
|
|
@ -44,8 +44,8 @@ func TestGetGiphyPreviewData(t *testing.T) {
|
|||
Site: "GIPHY",
|
||||
Title: "Boston Dynamics Yes GIF by FullMag - Find & Share on GIPHY",
|
||||
ThumbnailURL: "https://media1.giphy.com/media/lcG3qwtTKSNI2i5vst/giphy.gif",
|
||||
Height: 480,
|
||||
Width: 480,
|
||||
Height: 480,
|
||||
Width: 480,
|
||||
}
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, bostonDynamicsEthGifData.Site, previewData.Site)
|
||||
|
|
Loading…
Reference in New Issue