apply autocomplete changes to mock to fix editor unit tests

This commit is contained in:
Bruno Windels 2019-08-29 18:00:38 +02:00
parent c9572250be
commit be79cdddb0

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;
}
}