mirror of https://github.com/renovatebot/renovate
12 lines
312 B
TypeScript
12 lines
312 B
TypeScript
import { skip } from './util';
|
|
|
|
describe('modules/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);
|
|
});
|
|
});
|
|
});
|