diff --git a/__tests__/helpers/get-api-mock.ts b/__tests__/helpers/get-api-mock.ts index 2f1f4d7b0..687ddabe5 100644 --- a/__tests__/helpers/get-api-mock.ts +++ b/__tests__/helpers/get-api-mock.ts @@ -18,12 +18,6 @@ export function getAPIv1Mock(reqHeaders = {}) { }); } -export function getAPIv1MockWithVersionHeader(v: string) { - return getAPIv1Mock({ - 'x-readme-version': v, - }); -} - /** * Nock wrapper for ReadMe API v2 that adds required * `user-agent` request header so it gets properly picked up by nock. diff --git a/src/lib/apiError.ts b/src/lib/apiError.ts index b6c9ca50c..6c2f75b90 100644 --- a/src/lib/apiError.ts +++ b/src/lib/apiError.ts @@ -5,7 +5,7 @@ import chalk from 'chalk'; -export interface APIv1ErrorResponse { +interface APIv1ErrorResponse { docs?: string; error: string; help?: string;