Fix linting

This commit is contained in:
Shivek Khurana 2021-02-05 18:28:09 +05:30 committed by Andrea Maria Piana
parent 0feab5c6a7
commit 8d9b85f103
2 changed files with 8 additions and 8 deletions

View File

@ -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 {

View File

@ -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)