text: import { fuzzyMatches, matches } from '../matches';
  
  const node = null;
  const normalizer = str => str;
  
  test('matchers accept strings', () => {
    expect(matches('ABC', node, 'ABC', normalizer)).toBe(true);
    expect(fuzzyMatches('ABC', node, 'ABC', normalizer)).toBe(true);
  });
  
  test('matchers accept regex', () => {
    expect(matches('ABC', node, /ABC/, normalizer)).toBe(true);
    expect(fuzzyMatches('ABC', node, /ABC/, normalizer)).toBe(true);
  });
  
  test('matchers accept functions', () => {
    expect(matches('ABC', node, text => text === 'ABC', normalizer)).toBe(true);
    expect(fuzzyMatches('ABC', node, text => text === 'ABC', normalizer)).toBe(true);
  });
  
  test('matchers return false if text to match is not a string', () => {
    expect(matches(null, node, 'ABC', normalizer)).toBe(false);
    expect(fuzzyMatches(null, node, 'ABC', normalizer)).toBe(false);
  });
  
  test('matchers return true if text to match is a boolean', () => {
    expect(matches(true, node, true, normalizer)).toBe(true);
    expect(fuzzyMatches(1, node, true, normalizer)).toBe(true);
  });
  