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