renovate/lib/manager/homebrew/util.spec.ts
2020-02-05 01:14:31 +01:00

11 lines
306 B
TypeScript

import { skip } from './util';
describe('lib/manager/homebrew/util', () => {
describe('skip()', () => {
it('handles out of bounds case', () => {
const content = 'some content';
const idx = content.length * 2;
expect(skip(idx, content, c => c === '!')).toBe(idx);
});
});
});