chore: add integration testing

Starring was one of such examples where language was previously not
loaded.
This commit is contained in:
Gusted 2026-05-25 20:28:04 +02:00
parent 1d526d365e
commit e7dddaee75
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,17 @@
-
id: 1
repo_id: 1
commit_id: 65f1bf27bc3bf70f64657658635e66094edbcb4d
is_primary: true
language: 'Go'
size: 1023
created_unix: 1779733547
-
id: 2
repo_id: 1
commit_id: 65f1bf27bc3bf70f64657658635e66094edbcb4d
is_primary: false
language: 'PHP'
size: 1
created_unix: 1779733547

View file

@ -63,6 +63,7 @@ func TestAPIStar(t *testing.T) {
DecodeJSON(t, resp, &repos)
assert.Len(t, repos, 1)
assert.Equal(t, repo, repos[0].FullName)
assert.Equal(t, "Go", repos[0].Language)
t.Run("disabled stars", func(t *testing.T) {
assertDisabledStarsNotFound(t, req)
@ -82,6 +83,7 @@ func TestAPIStar(t *testing.T) {
DecodeJSON(t, resp, &repos)
assert.Len(t, repos, 1)
assert.Equal(t, repo, repos[0].FullName)
assert.Equal(t, "Go", repos[0].Language)
t.Run("disabled stars", func(t *testing.T) {
assertDisabledStarsNotFound(t, req)