fix(frontend): preserve timeout label success toast
Build and publish Docker images / Build and publish images (push) Successful in 2m21s
Build and publish Docker images / Build and publish images (push) Successful in 2m21s
This commit is contained in:
@@ -37,6 +37,12 @@ describe('#parseAPIErrorResponse', () => {
|
||||
expect(parseAPIErrorResponse('Error: 422 Failed')).toBe(
|
||||
'提交的信息有误,请检查后重试。'
|
||||
);
|
||||
expect(parseAPIErrorResponse('timeout of 10000ms exceeded')).toBe(
|
||||
'请求超时,请稍后再试。'
|
||||
);
|
||||
expect(parseAPIErrorResponse('已从会话 ID 14 移除标签 #超时关闭')).toBe(
|
||||
'已从会话 ID 14 移除标签 #超时关闭'
|
||||
);
|
||||
expect(
|
||||
parseAPIErrorResponse(new Error('Request failed with status code 401'))
|
||||
).toBe('身份验证失败,请重新登录。');
|
||||
|
||||
Reference in New Issue
Block a user