renovate/lib/manager/homebrew/util.spec.ts

12 lines
308 B
TypeScript
Raw Normal View History

import { skip } from './util';
2019-05-01 08:39:40 +00:00
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);
2019-05-01 08:39:40 +00:00
});
});
});