Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Jun 21, 2024
1 parent e613d15 commit b2c1bb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tests/get_mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"testing"

"github.com/MarvinJWendt/testza"

"github.com/satisfactorymodding/smr-api/generated"
)

Expand All @@ -28,8 +29,8 @@ func TestGetModLimitOffset(t *testing.T) {
token, _, err := makeUser(ctx)
testza.AssertNoError(t, err)

tags := seedTags(t, ctx, token, client)
seedMods(t, ctx, token, client, tags[0])
tags := seedTags(ctx, t, token, client)
seedMods(ctx, t, token, client, tags[0])

getRequest := authRequest(getQuery, token)

Expand Down
5 changes: 3 additions & 2 deletions tests/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import (

"github.com/MarvinJWendt/testza"
"github.com/machinebox/graphql"

"github.com/satisfactorymodding/smr-api/generated"
"github.com/satisfactorymodding/smr-api/util"
)

func seedTags(t *testing.T, ctx context.Context, token string, client *graphql.Client) []string {
func seedTags(ctx context.Context, t *testing.T, token string, client *graphql.Client) []string {
tags := []string{
"hello",
"foo",
Expand Down Expand Up @@ -45,7 +46,7 @@ type testMod struct {
TagIDs []string `json:"tagIDs"`
}

func seedMods(t *testing.T, ctx context.Context, token string, client *graphql.Client, tagID string) []string {
func seedMods(ctx context.Context, t *testing.T, token string, client *graphql.Client, tagID string) []string {
mods := []testMod{
{
Name: "Advanced Robotics",
Expand Down

0 comments on commit b2c1bb5

Please sign in to comment.