mirror of https://github.com/laurent22/joplin.git
Improved test unit
parent
8f5219fb79
commit
09bcf8df35
|
@ -386,6 +386,10 @@ describe('Synchronizer', function() {
|
|||
expect(conflictedNotes.length).toBe(1);
|
||||
expect(conflictedNotes[0].title).toBe(newTitle);
|
||||
|
||||
let unconflictedNotes = await Note.unconflictedNotes();
|
||||
|
||||
expect(unconflictedNotes.length).toBe(0);
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
|
|
|
@ -88,6 +88,10 @@ class Note extends BaseItem {
|
|||
return this.modelSelectAll('SELECT * FROM notes WHERE is_conflict = 1');
|
||||
}
|
||||
|
||||
static unconflictedNotes() {
|
||||
return this.modelSelectAll('SELECT * FROM notes WHERE is_conflict = 0');
|
||||
}
|
||||
|
||||
static updateGeolocation(noteId) {
|
||||
Log.info('Updating lat/long of note ' + noteId);
|
||||
|
||||
|
|
Loading…
Reference in New Issue