Update dependencies
This commit is contained in:
@@ -54,13 +54,17 @@ internal abstract class BaseNoteRepositoryImplTest : DbTest() {
|
||||
val note = fakeNote()
|
||||
|
||||
assertThat(noteRepo.create(user1.id, note))
|
||||
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt", "public")
|
||||
.hasNoNullFieldsOrProperties()
|
||||
.usingRecursiveComparison()
|
||||
.ignoringFields("uuid", "updatedAt", "public")
|
||||
.isEqualTo(note)
|
||||
|
||||
assertThat(db.notes.toList())
|
||||
.hasSize(1)
|
||||
.first()
|
||||
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt", "public")
|
||||
.usingRecursiveComparison()
|
||||
.ignoringFields("uuid", "updatedAt", "public")
|
||||
.isEqualTo(note)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,7 +224,9 @@ internal abstract class BaseNoteRepositoryImplTest : DbTest() {
|
||||
assertThat(noteRepo.update(user1.id, note1.uuid, newNote1)).isNotNull
|
||||
|
||||
assertThat(noteRepo.find(user1.id, note1.uuid))
|
||||
.isEqualToComparingOnlyGivenFields(newNote1, "meta", "markdown", "html")
|
||||
.usingRecursiveComparison()
|
||||
.ignoringFields("updatedAt", "uuid", "public")
|
||||
.isEqualTo(newNote1)
|
||||
|
||||
val note2 = noteRepo.insertFakeNote(user1)
|
||||
val newNote2 = fakeNote().let {
|
||||
@@ -230,7 +236,9 @@ internal abstract class BaseNoteRepositoryImplTest : DbTest() {
|
||||
.isNotNull
|
||||
|
||||
assertThat(noteRepo.find(user1.id, note2.uuid))
|
||||
.isEqualToComparingOnlyGivenFields(newNote2, "meta", "markdown", "html")
|
||||
.usingRecursiveComparison()
|
||||
.ignoringFields("updatedAt", "uuid", "public")
|
||||
.isEqualTo(newNote2)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -321,7 +329,9 @@ internal abstract class BaseNoteRepositoryImplTest : DbTest() {
|
||||
val n = noteRepo.insertFakeNote(user1)
|
||||
noteRepo.makePublic(user1.id, n.uuid)
|
||||
assertThat(noteRepo.findPublic(n.uuid))
|
||||
.isEqualToIgnoringGivenFields(n.copy(public = true), "updatedAt")
|
||||
.usingRecursiveComparison()
|
||||
.ignoringFields("updatedAt")
|
||||
.isEqualTo(n.copy(public = true))
|
||||
|
||||
noteRepo.makePrivate(user1.id, n.uuid)
|
||||
assertThat(noteRepo.findPublic(n.uuid)).isNull()
|
||||
|
||||
Reference in New Issue
Block a user