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

    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(
      '<div style="text-align: center;"><span style="font-size: 32px;">Moby Dick</span></div>'
    )
    expect(lines.get(1).getOuterHtml().then(cleanLines)).toEqual(
      '<div style="text-align: center;"><b>Chapter 1. Loomings.</b></div>'
    )
    expectedDelta = {

    )
    updateEditor()
    lines = element.all(By.css('.ql-editor div'))
    expect(lines.get(0).getOuterHtml()).toEqual('<div><br></div>')
    expect(lines.get(1).getOuterHtml()).toEqual('<div><br></div>')
    browser.call( -> )
  )

