 
       it 'should find no reference of whitespace', ->
         refs = refactor.find new Range [0, 1], [0, 2]
-        expect(refs).to.have.length 0
+        expect(refs).toHaveLength 0
 
       it 'should find no reference of operator', ->
         refs = refactor.find new Range [0, 2], [0, 3]
-        expect(refs).to.have.length 0
+        expect(refs).toHaveLength 0
         refs = refactor.find new Range [1, 6], [1, 7]
-        expect(refs).to.have.length 0
+        expect(refs).toHaveLength 0
 
       it 'should find a reference of variable', ->
         refs = refactor.find new Range [0, 0], [0, 1]
-        expect(refs).to.have.length 1
-        expect(refs[0].range.start.row).to.be 1
-        expect(refs[0].range.start.column).to.be 4
-        expect(refs[0].range.end.row).to.be 1
-        expect(refs[0].range.end.column).to.be 5
+        expect(refs).toHaveLength 1
+        expect(refs[0].range).toEqual new Range [1, 4], [1, 5]
 
       it 'should find references of variable', ->
         refs = refactor.find new Range [1, 0], [1, 1]
-        expect(refs).to.have.length 2
-        expect(refs[0].range.start.row).to.be 0
-        expect(refs[0].range.start.column).to.be 4
-        expect(refs[0].range.end.row).to.be 0
-        expect(refs[0].range.end.column).to.be 5
-        expect(refs[1].range.start.row).to.be 1
-        expect(refs[1].range.start.column).to.be 8
-        expect(refs[1].range.end.row).to.be 1
-        expect(refs[1].range.end.column).to.be 9
+        expect(refs).toHaveLength 2
+        expect(refs[0].range).toEqual new Range [0, 4], [0, 5]
+        expect(refs[1].range).toEqual new Range [1, 8], [1, 9]
 
       it 'should find references of value', ->
         refs = refactor.find new Range [1, 8], [1, 9]
-        expect(refs).to.have.length 2
-        expect(refs[0].range.start.row).to.be 0
-        expect(refs[0].range.start.column).to.be 4
-        expect(refs[0].range.end.row).to.be 0
-        expect(refs[0].range.end.column).to.be 5
-        expect(refs[1].range.start.row).to.be 1
-        expect(refs[1].range.start.column).to.be 0
-        expect(refs[1].range.end.row).to.be 1
-        expect(refs[1].range.end.column).to.be 1
+        expect(refs).toHaveLength 2
+        expect(refs[0].range).toEqual new Range [0, 4], [0, 5]
+        expect(refs[1].range).toEqual new Range [1, 0], [1, 1]
 
     do ->
       refactor = new Refactor """


      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

      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

    do ->
      refactor = new Refactor """


      it 'should find ref of child class', ->
        refs = refactor.find new Range [0, 6], [0, 7]
        expect(refs).toHaveLength 2
        expect(refs[0].range).toEqual new Range [1, 16], [1, 17]
        expect(refs[1].range).toEqual new Range [2, 16], [2, 17]

      it 'should find ref of extends class', ->
        refs = refactor.find new Range [1, 16], [1, 17]
        expect(refs).toHaveLength 2
        expect(refs[0].range).toEqual new Range [0, 6], [0, 7]
        expect(refs[1].range).toEqual new Range [2, 16], [2, 17]
