fix: test formatting

This commit is contained in:
StevanFreeborn
2023-02-01 23:39:07 -06:00
parent b4bd721aad
commit fcbe5fafd2
3 changed files with 7 additions and 3 deletions
+3
View File
@@ -1,3 +1,6 @@
# husky
.husky/
# Logs # Logs
logs logs
*.log *.log
+3 -2
View File
@@ -9,7 +9,8 @@
"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",
"test-coverage": "nyc npm run tests" "test-coverage": "nyc npm run tests",
"prepare": "husky install"
}, },
"author": "Stevan Freeborn", "author": "Stevan Freeborn",
"license": "MIT", "license": "MIT",
@@ -36,4 +37,4 @@
"pre-commit": "pretty-quick --staged" "pre-commit": "pretty-quick --staged"
} }
} }
} }
+1 -1
View File
@@ -97,7 +97,7 @@ export class OnspringClient {
*/ */
private async get<T>(endpoint: string, config: AxiosRequestConfig = {}): Promise<ApiResponse<T>> { private async get<T>(endpoint: string, config: AxiosRequestConfig = {}): 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;
} }
} }