0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 05:28:35 +00:00
renovatebot_renovate/lib/util/split.spec.ts

13 lines
326 B
TypeScript

import { addSplit, getSplits, splitInit } from './split';
describe('util/split', () => {
it('adds splits and returns results', () => {
splitInit();
addSplit('one');
addSplit('two');
const res = getSplits();
expect(res.total).toBeDefined();
expect(Object.keys(res.splits)).toHaveLength(2);
});
});