Fix a test
This commit is contained in:
parent
c5f9a1d6e0
commit
b8e9d4e96e
@ -94,13 +94,13 @@ internal class NoteRepositoryImplTest {
|
|||||||
val note = Note(NoteMetadata("title", emptyList()), "md", "html")
|
val note = Note(NoteMetadata("title", emptyList()), "md", "html")
|
||||||
|
|
||||||
assertThat(noteRepo.create(user1.id, note))
|
assertThat(noteRepo.create(user1.id, note))
|
||||||
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt")
|
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt", "public")
|
||||||
.hasNoNullFieldsOrProperties()
|
.hasNoNullFieldsOrProperties()
|
||||||
|
|
||||||
assertThat(db.notes.toList())
|
assertThat(db.notes.toList())
|
||||||
.hasSize(1)
|
.hasSize(1)
|
||||||
.first()
|
.first()
|
||||||
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt")
|
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt", "public")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user