Skip to content

Commit

Permalink
fix tests failing from deleted repo (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanhawari authored Apr 2, 2024
1 parent b86e6a3 commit 94c9ec2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,34 +555,34 @@ func Test_darwinARMFallback(t *testing.T) {
}
}

var testGithubSearchJSON, _ = getGithubSearchJSON("marwanhawari/pacing.app")
var testGithubSearchJSON, _ = getGithubSearchJSON("marwanhawari/ppath")

var testGithubSearchReadJSON GithubSearch = GithubSearch{
Count: 1,
Items: []GithubSearchResult{
{
FullName: "marwanhawari/pacing.app",
Stars: 0,
Language: "JavaScript",
Description: " A simple and intuitive website for calculating your running pace.",
FullName: "marwanhawari/ppath",
Stars: 7,
Language: "Go",
Description: "🌈 A command-line tool to pretty print your system's PATH environment variable.",
},
},
}

var testGithubSearch GithubSearch = GithubSearch{
SearchQuery: "marwanhawari/pacing.app",
SearchQuery: "marwanhawari/ppath",
Count: 1,
Items: []GithubSearchResult{
{
FullName: "marwanhawari/pacing.app",
Stars: 0,
Language: "JavaScript",
Description: " A simple and intuitive website for calculating your running pace.",
FullName: "marwanhawari/ppath",
Stars: 7,
Language: "Go",
Description: "🌈 A command-line tool to pretty print your system's PATH environment variable.",
},
},
}

var testFormattedSearchResults = []string{"marwanhawari/pacing.app [⭐️0] ⏱ A simple and intuitive website for calculating your running pace."}
var testFormattedSearchResults = []string{"marwanhawari/ppath [⭐️7] 🌈 A command-line tool to pretty print your system's PATH environment variable."}

func Test_getGithubSearchJSON(t *testing.T) {
type args struct {
Expand All @@ -597,7 +597,7 @@ func Test_getGithubSearchJSON(t *testing.T) {
{
name: "test1",
args: args{
searchQuery: "marwanhawari/pacing.app",
searchQuery: "marwanhawari/ppath",
},
want: testGithubSearchJSON,
wantErr: false,
Expand Down Expand Up @@ -671,7 +671,7 @@ func TestNewGithubSearch(t *testing.T) {
{
name: "test1",
args: args{
searchQuery: "marwanhawari/pacing.app",
searchQuery: "marwanhawari/ppath",
},
want: testGithubSearch,
wantErr: false,
Expand Down

0 comments on commit 94c9ec2

Please sign in to comment.