fix: test formatting
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "npx prettier --write .",
|
"format": "pretty-quick",
|
||||||
"build": "npm run tests && tsc",
|
"build": "npm run tests && tsc",
|
||||||
"tests": "mocha -R progress -r ts-node/register ./tests/**/*.spec.ts",
|
"tests": "mocha -R progress -r ts-node/register ./tests/**/*.spec.ts",
|
||||||
"test": "mocha -r ts-node/register",
|
"test": "mocha -r ts-node/register",
|
||||||
|
|||||||
@@ -102,8 +102,8 @@ export class OnspringClient {
|
|||||||
endpoint: string,
|
endpoint: string,
|
||||||
config: AxiosRequestConfig = {}
|
config: AxiosRequestConfig = {}
|
||||||
): Promise<ApiResponse<T>> {
|
): Promise<ApiResponse<T>> {
|
||||||
const response = await this._client.get(endpoint, config);
|
const response = await this._client.get(endpoint, config);
|
||||||
const apiResponse = ApiResponseFactory.getApiResponse<T>(response);
|
const apiResponse = ApiResponseFactory.getApiResponse<T>(response);
|
||||||
return apiResponse;
|
return apiResponse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user