mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 14:07:05 +05:30
fix(api): title and url are required for bookmark edits
This commit is contained in:
parent
6f4c1a0fbd
commit
cce12fb138
2 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,6 @@ import org.junit.jupiter.api.AfterAll
|
|||
import org.junit.jupiter.api.AfterEach
|
||||
import org.junit.jupiter.api.BeforeAll
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.testcontainers.containers.GenericContainer
|
||||
import retrofit2.Retrofit
|
||||
|
@ -87,7 +86,6 @@ class ShioriApiTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Disabled("Server returns HTTP 500, needs debugging")
|
||||
fun editBookmark() = runTest {
|
||||
val response =
|
||||
api.addBookmark(
|
||||
|
@ -109,6 +107,8 @@ class ShioriApiTest {
|
|||
val newBookmark =
|
||||
EditedBookmark(
|
||||
id = response.id,
|
||||
url = response.url,
|
||||
title = response.title,
|
||||
tags = listOf(Tag("examples")),
|
||||
)
|
||||
val edited = api.editBookmark(credentials.session, newBookmark)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue