Collection book list: allow to directly input a position

This commit is contained in:
2026-04-12 15:46:23 +02:00
parent 255f24904c
commit 55a4a98b4d
4 changed files with 67 additions and 8 deletions

View File

@@ -52,6 +52,7 @@ func TestPostCollectionChangePositionHandler_LastPosition(t *testing.T) {
_, collection := testGetCollection(t, collectionId, "10", "0")
assert.Equal(t, "Recherches philosophiques", collection.Items[7].Book.Title)
assert.Equal(t, "Le château", collection.Items[6].Book.Title)
assert.Equal(t, uint(8), collection.Items[7].Position)
}
func TestPostCollectionChangePositionHandler_FirstPosition(t *testing.T) {