     )
     updateEditor()
     firstLine = element.all(By.css('.ql-editor div')).first()
-    expect(firstLine.getOuterHtml().then(cleanLines)).toEqual('<div>Whale</div>')
+    expect(firstLine.getOuterHtml()).toEqual('<div>Whale</div>')
     browser.call( -> )
   )
 

    text = 'The Whale'
    editor.sendKeys(text)
    updateEditor()
    expect(editor.getInnerHtml().then(cleanLines)).toEqual("<div>#{text}</div>")
    expectedDelta = {
      ops: [{ insert: text }]
    }

    editor.sendKeys(protractor.Key.chord(protractor.Key.META, 'b'))
    updateEditor()
    lines = element.all(By.css('.ql-editor div'))
    expect(lines.get(1).getOuterHtml()).toEqual(
      '<div><b>Chapter 1. Loomings.</b></div>'
    )
    expectedDelta = {
