       highlight.pre = "[]"
       target = utils.annotationFromHighlight(highlight, client)
       target.done (annotation) ->
-        expect(annotation.ranges).to.eql([])
+        expect(annotation.ranges).to.eql([xpath])

    annotation =
      id: 1
      page: "http://page"
      ranges: []
      text: "This is an annotation comment"
      quote: "some highlighted text"


      expect(target).to.have.property("content", annotation.text)

  describe "#annotationFromHighlight()", ->
    xpath     = null
    highlight = null
    client    = null
    promise   = null

    beforeEach ->
      xpath = 
        start: "/p"
        startOffset: 0
        end: "/p"
        endOffset: 10

      highlight =
        id: 1
        locators:
          xpath: xpath
          file_id: "http://page"
        uri: "http://api.readmill.com/highlight/1"
        content: "A nice piece of highlighted text"
        comments: "http://api.readmill.com/highlight/1/comments"
