Skip to content

Commit

Permalink
add reverse test
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmastech committed Jan 21, 2025
1 parent 334dc2c commit ca26994
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion index_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package meilisearch
import (
"context"
"crypto/tls"
"github.com/stretchr/testify/require"
"testing"
"time"

"github.com/stretchr/testify/require"
)

func TestIndex_GetTask(t *testing.T) {
Expand Down Expand Up @@ -156,6 +157,20 @@ func TestIndex_GetTasks(t *testing.T) {
},
},
},
{
name: "TestTasksWithReverseParam",
args: args{
UID: "indexUID",
client: sv,
document: []docTest{
{ID: "123", Name: "Pride and Prejudice"},
{ID: "999", Name: "Le Petit Prince"},
},
query: &TasksQuery{
Reverse: true,
},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit ca26994

Please sign in to comment.