fix: test formatting
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
# husky
|
||||||
|
.husky/
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
|
|||||||
+3
-2
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user