Skip to content

Commit

Permalink
add test api_sort_animes clean
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarorichard committed Jul 12, 2024
1 parent 95be5bd commit e5fb3f7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/util/api_sort_animes_test.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
package util_test

import (
"sort"
"testing"

"github.com/alvarorichard/Goanime/internal/api"
"github.com/stretchr/testify/assert"
)

// sortAnimes is a helper function to sort animes
func sortAnime(animeList []api.Anime) []api.Anime {
sort.Slice(animeList, func(i, j int) bool {
return animeList[i].Name < animeList[j].Name
})
return animeList
}

func TestSortAnimes(t *testing.T) {
tests := []struct {
Expand Down

0 comments on commit e5fb3f7

Please sign in to comment.