Skip to content

Commit

Permalink
stub out the new toDetailedIndexList method
Browse files Browse the repository at this point in the history
Fixes #5642
  • Loading branch information
spalger committed Dec 11, 2015
1 parent bb957ad commit c723e0d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/public/courier/fetch/request/__tests__/segmented.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ describe('ui/courier/fetch/request/segmented', () => {
}

function mockIndexPattern() {
const queue = [1, 2, 3];
return {
toIndexList: sinon.stub().returns(Promise.resolve(queue))
toDetailedIndexList: sinon.stub().returns(Promise.resolve([
{ index: 1, min: 0, max: 1 },
{ index: 2, min: 0, max: 1 },
{ index: 3, min: 0, max: 1 },
]))
};
}
});

0 comments on commit c723e0d

Please sign in to comment.