fix: in can connect test mock underlying axios instance's get method
This commit is contained in:
1 parent
cad208cd4c
commit
fa1a952cb2
5 files changed
+212
-7
No files matched your search
@@ -29,9 +29,9 @@ export class ApiResponseFactory {
|
||||
*/
|
||||
private static TryToGetMessage(response: AxiosResponse): string {
|
||||
if (
|
||||
response.status == HttpStatusCode.Unauthorized ||
|
||||
response.status == HttpStatusCode.Forbidden ||
|
||||
response.status == HttpStatusCode.NotFound
|
||||
response.status === HttpStatusCode.Unauthorized ||
|
||||
response.status === HttpStatusCode.Forbidden ||
|
||||
response.status === HttpStatusCode.NotFound
|
||||
) {
|
||||
return response.data?.message;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user