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")
assertThat(noteRepo.create(user1.id, note))
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt")
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt", "public")
.hasNoNullFieldsOrProperties()
assertThat(db.notes.toList())
.hasSize(1)
.first()
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt")
.isEqualToIgnoringGivenFields(note, "uuid", "updatedAt", "public")
}
}