From be79cdddb09eb434f91b54ab60b58f0e975c0ed8 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 29 Aug 2019 18:00:38 +0200 Subject: [PATCH] apply autocomplete changes to mock to fix editor unit tests --- test/editor/mock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/editor/mock.js b/test/editor/mock.js index 7e0fd6b273..bb1a51d14b 100644 --- a/test/editor/mock.js +++ b/test/editor/mock.js @@ -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; } }