Add ktlint plugin
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package be.simplenotes.search
|
||||
|
||||
import be.simplenotes.types.PersistedNote
|
||||
import be.simplenotes.search.utils.rmdir
|
||||
import be.simplenotes.types.PersistedNote
|
||||
import org.apache.lucene.analysis.standard.StandardAnalyzer
|
||||
import org.apache.lucene.document.Document
|
||||
import org.apache.lucene.index.*
|
||||
|
||||
@@ -24,12 +24,14 @@ internal class NoteSearcherImplTest {
|
||||
content: String = "",
|
||||
uuid: UUID = UUID.randomUUID(),
|
||||
): PersistedNote {
|
||||
val note = PersistedNote(NoteMetadata(title, tags),
|
||||
val note = PersistedNote(
|
||||
NoteMetadata(title, tags),
|
||||
markdown = content,
|
||||
html = "",
|
||||
LocalDateTime.MIN,
|
||||
uuid,
|
||||
public = false)
|
||||
public = false
|
||||
)
|
||||
searcher.indexNote(1, note)
|
||||
return note
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user