From 92a588e9847c14cde50f186f2ced6dd7781ccb12 Mon Sep 17 00:00:00 2001
From: Ezequiel Olea Figueroa <ezequiel.olea.figueroa@schibsted.com>
Date: Sat, 13 May 2023 21:53:54 +0200
Subject: [PATCH] fix: minor space in tweet

---
 provider/github/provider.go      | 2 +-
 provider/github/provider_test.go | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/provider/github/provider.go b/provider/github/provider.go
index e5a12db..374ef45 100644
--- a/provider/github/provider.go
+++ b/provider/github/provider.go
@@ -213,7 +213,7 @@ func (p Provider) getContent(repo *github.Repository) *domain.Content {
 	}
 
 	if repo.UpdatedAt != nil {
-		lastUpdatedAt := "Updated on : " + repo.GetUpdatedAt().Format("2006-01-02")
+		lastUpdatedAt := fmt.Sprintf("Updated on: %s", repo.GetUpdatedAt().Format("2006-01-02"))
 		c.ExtraData = append(c.ExtraData, lastUpdatedAt)
 	}
 
diff --git a/provider/github/provider_test.go b/provider/github/provider_test.go
index 6e48653..0ab35b3 100644
--- a/provider/github/provider_test.go
+++ b/provider/github/provider_test.go
@@ -272,7 +272,7 @@ func TestGetContent(t *testing.T) {
 			Name:        "Test no repo data with only updated at",
 			mockConfig:  config.Config{},
 			repo:        &github.Repository{Language: &lang, HTMLURL: &url, UpdatedAt: &github.Timestamp{Time: updatedAt}},
-			returnValue: &domain.Content{URL: &url, ExtraData: []string{"Updated on : 2000-07-12", "#g "}},
+			returnValue: &domain.Content{URL: &url, ExtraData: []string{"Updated on: 2000-07-12", "#g "}},
 		},
 		{
 			Name:       "Test full with username",
@@ -285,7 +285,7 @@ func TestGetContent(t *testing.T) {
 				},
 			},
 			repo:        &github.Repository{Name: &name, Description: &desc, Language: &lang, HTMLURL: &url, StargazersCount: &count, Owner: &gu, UpdatedAt: &github.Timestamp{Time: updatedAt}},
-			returnValue: &domain.Content{Title: &name, Subtitle: &desc, URL: &url, ExtraData: []string{"Lang: g", "⭐️ 1", "Author: @twitterusername", "Updated on : 2000-07-12", "#g "}},
+			returnValue: &domain.Content{Title: &name, Subtitle: &desc, URL: &url, ExtraData: []string{"Lang: g", "⭐️ 1", "Author: @twitterusername", "Updated on: 2000-07-12", "#g "}},
 		},
 	} {
 		t.Run(tc.Name, func(t *testing.T) {