Fix a test

This commit is contained in:
Hubert Van De Walle 2020-08-25 07:12:58 +02:00
parent c5f9a1d6e0
commit b8e9d4e96e

View File

@ -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")
} }
} }