mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
18 lines
568 B
TypeScript
18 lines
568 B
TypeScript
import { minimatch } from './minimatch';
|
|
|
|
describe('util/minimatch', () => {
|
|
it('caches minimatch', () => {
|
|
expect(minimatch('foo')).toBe(minimatch('foo'));
|
|
expect(minimatch('foo', { dot: true })).toBe(
|
|
minimatch('foo', { dot: true })
|
|
);
|
|
});
|
|
|
|
it('does not cache minimatch', () => {
|
|
expect(minimatch('foo', undefined, false)).not.toBe(
|
|
minimatch('foo', undefined, false)
|
|
);
|
|
expect(minimatch('foo')).not.toBe(minimatch('foo', undefined, false));
|
|
expect(minimatch('foo', { dot: true })).not.toBe(minimatch('foo'));
|
|
});
|
|
});
|