From f5a816be76d8b1802c6e8f21e251b98c55e90637 Mon Sep 17 00:00:00 2001 From: Andy Kauffman Date: Thu, 7 Jul 2016 10:20:49 -0400 Subject: [PATCH] Update failing test after merge --- test/squire.spec.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/squire.spec.js b/test/squire.spec.js index 6705f61..2d9869a 100644 --- a/test/squire.spec.js +++ b/test/squire.spec.js @@ -208,7 +208,13 @@ describe('Squire RTE', function () { }); it('returns the path to the selection', function () { - editor.insertHTML('Bold Text'); + var range = doc.createRange(); + range.setStart(doc.body.childNodes.item(0).childNodes.item(1), 0); + range.setEnd(doc.body.childNodes.item(0).childNodes.item(1), 0); + editor.setSelection(range); + + //Manually tell it to update the path + editor._updatePath(range); expect(editor.getPath(), 'to be', 'DIV>B'); });