apply autocomplete changes to mock to fix editor unit tests

pull/21833/head
Bruno Windels 2019-08-29 18:00:38 +02:00
parent c9572250be
commit be79cdddb0
1 changed files with 2 additions and 2 deletions

View File

@ -40,12 +40,12 @@ class MockAutoComplete {
} else {
pill = this._partCreator.roomPill(match.resourceId);
}
this._updateCallback({replacePart: pill, close});
this._updateCallback({replaceParts: [pill], close});
}
}
// called by EditorModel when typing into pill-candidate part
onPartUpdate(part, offset) {
onPartUpdate(part, pos) {
this._part = part;
}
}