         """
       .not.toThrow()
       expect(parser.nodes).toBeNull()
-      expectEqualRefs parser, new Range([0, 0], [0, 1])
+      expectNoRefs parser, new Range([0, 0], [0, 1])
 
   describe 'find', ->
 

Parser = require '../lib/Parser'
{ Range } = require 'atom'

expectEqualRefs = (parser, searchedRange, expectedRanges...) ->
  ranges = parser.find searchedRange
  expect ranges
  .toHaveLength expectedRanges.length
  for range, i in ranges
    expect range
    .toEqual expectedRanges[i]


describe 'Parser', ->

      parser.parse """
      b = a * b / 10
      """
      expectNoRefs parser, new Range([0, 1], [0, 2])
      expectNoRefs parser, new Range([0, 2], [0, 3])
      expectNoRefs parser, new Range([1, 6], [1, 7])

    it 'should find references in FUNCTION', ->
      parser.parse """
