mirror of https://github.com/vector-im/riot-web
apply autocomplete changes to mock to fix editor unit tests
parent
c9572250be
commit
be79cdddb0
|
@ -40,12 +40,12 @@ class MockAutoComplete {
|
||||||
} else {
|
} else {
|
||||||
pill = this._partCreator.roomPill(match.resourceId);
|
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
|
// called by EditorModel when typing into pill-candidate part
|
||||||
onPartUpdate(part, offset) {
|
onPartUpdate(part, pos) {
|
||||||
this._part = part;
|
this._part = part;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue