Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Jest 23.5.0 #22791

Merged
merged 10 commits into from
Sep 8, 2018
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('getIndices', () => {

it('should throw exceptions', async () => {
const es = {
search: () => { throw 'Fail'; }
search: () => { throw new Error('Fail'); }
};

await expect(getIndices(es, 'kibana', 1)).rejects.toThrow();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function getIndices(es, rawPattern, limit) {

// We need to always provide a limit and not rely on the default
if (!limit) {
throw '`getIndices()` was called without the required `limit` parameter.';
throw new Error('`getIndices()` was called without the required `limit` parameter.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

const params = {
Expand Down