     element(By.cssContainingText('.ql-align option', 'Center')).click()
     updateEditor()
     lines = element.all(By.css('.ql-editor div'))
-    expect(lines.get(0).getOuterHtml().then(cleanLines)).toEqual(
+    expect(lines.get(0).getOuterHtml()).toEqual(
       '<div style="text-align: center;"><span style="font-size: 32px;">Moby Dick</span></div>'
     )
-    expect(lines.get(1).getOuterHtml().then(cleanLines)).toEqual(
+    expect(lines.get(1).getOuterHtml()).toEqual(
       '<div style="text-align: center;"><b>Chapter 1. Loomings.</b></div>'
     )
     expectedDelta = {

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

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

