apply autocomplete changes to mock to fix editor unit tests
This commit is contained in:
parent
c9572250be
commit
be79cdddb0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue