github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/packages/pyroscope-flamegraph/src/search.spec.ts (about)

     1  import { isMatch } from './search';
     2  
     3  describe('search', () => {
     4    it('matches substrings', () => {
     5      expect(isMatch('foo', 'foobar')).toBe(true);
     6    });
     7  
     8    it('ignores cases', () => {
     9      expect(isMatch('foo', 'FOOBAR')).toBe(true);
    10    });
    11  });