 
       it 'should find ref from outer of array', ->
         refs = refactor.find new Range [0, 0], [0, 1]
-        expect(refs).to.have.length 2
-        expect(refs[0].range.start.row).to.be 3
-        expect(refs[0].range.start.column).to.be 2
-        expect(refs[0].range.end.row).to.be 3
-        expect(refs[0].range.end.column).to.be 3
-        expect(refs[1].range.start.row).to.be 4
-        expect(refs[1].range.start.column).to.be 2
-        expect(refs[1].range.end.row).to.be 4
-        expect(refs[1].range.end.column).to.be 3
+        expect(refs).toHaveLength 2
+        expect(refs[0].range).toEqual new Range [3, 2], [3, 3]
+        expect(refs[1].range).toEqual new Range [4, 2], [4, 3]
 
       it 'should find ref from inner of array', ->
         refs = refactor.find new Range [3, 6], [3, 7]
-        expect(refs).to.have.length 2
-        expect(refs[0].range.start.row).to.be 1
-        expect(refs[0].range.start.column).to.be 0
-        expect(refs[0].range.end.row).to.be 1
-        expect(refs[0].range.end.column).to.be 1
-        expect(refs[1].range.start.row).to.be 4
-        expect(refs[1].range.start.column).to.be 6
-        expect(refs[1].range.end.row).to.be 4
-        expect(refs[1].range.end.column).to.be 7
+        expect(refs).toHaveLength 2
+        expect(refs[0].range).toEqual new Range [1, 0], [1, 1]
+        expect(refs[1].range).toEqual new Range [4, 6], [4, 7]
 
     do ->
       refactor = new Refactor """

expect = require 'expect.js'
Refactor = require '../lib/Refactor'
{ Range } = require 'atom'



      it 'should find ref from outer of object', ->
        refs = refactor.find new Range [0, 0], [0, 1]
        expect(refs).toHaveLength 2
        expect(refs[0].range).toEqual new Range [3, 7], [3, 8]
        expect(refs[1].range).toEqual new Range [4, 9], [4, 10]

      it 'should find ref from inner of object', ->
        refs = refactor.find new Range [3, 11], [3, 12]
        expect(refs).toHaveLength 2
        expect(refs[0].range).toEqual new Range [1, 0], [1, 1]
        expect(refs[1].range).toEqual new Range [4, 13], [4, 14]

    do ->
      refactor = new Refactor """
