ch some
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
"online-back/internal/shared"
|
||||
"online-back/pkg/logging"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -61,7 +62,7 @@ func TestParseListFilterIgnoresUndefinedAndCapsLimit(t *testing.T) {
|
||||
if filter.Module != "card-orders" {
|
||||
t.Fatalf("module=%q", filter.Module)
|
||||
}
|
||||
if filter.Limit != maxLimit {
|
||||
if filter.Limit != shared.MaxLimit {
|
||||
t.Fatalf("limit=%d", filter.Limit)
|
||||
}
|
||||
if filter.Page != 2 {
|
||||
@@ -90,7 +91,7 @@ func TestGetByIDListsModuleWhenPathIsNotNumeric(t *testing.T) {
|
||||
if repo.listFilter.Module != "card-orders" {
|
||||
t.Fatalf("module=%q", repo.listFilter.Module)
|
||||
}
|
||||
if repo.listFilter.Limit != maxLimit {
|
||||
if repo.listFilter.Limit != shared.MaxLimit {
|
||||
t.Fatalf("limit=%d", repo.listFilter.Limit)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user