修复空卡密导致自动化规则账号不显示
This commit is contained in:
1 parent
b831f2d7c8
commit
1185551018
5 files changed
+14
-3
No files matched your search
@@ -7,6 +7,7 @@ import {
|
||||
completeQRVerification,
|
||||
createNotificationChannel,
|
||||
getAccountDetails,
|
||||
getCards,
|
||||
getAutomationIssues,
|
||||
getItems,
|
||||
getItemPublishBatches,
|
||||
@@ -93,6 +94,11 @@ test('getItemPublishBatches unwraps persisted batch list', async () => {
|
||||
expect(fetchMock).toHaveBeenCalledWith('/items/publish-batches?limit=10', expect.objectContaining({ credentials: 'include' }));
|
||||
});
|
||||
|
||||
test('getCards treats an empty backend response as an empty list', async () => {
|
||||
vi.stubGlobal('fetch', vi.fn().mockResolvedValue(jsonResponse(null)));
|
||||
await expect(getCards()).resolves.toEqual([]);
|
||||
});
|
||||
|
||||
test('automation issue APIs expose and resolve quarantined work', async () => {
|
||||
const fetchMock = vi.fn()
|
||||
.mockResolvedValueOnce(jsonResponse({ runs: [{ id: 1 }], pending_tasks: [{ id: 2 }] }))
|
||||
|
||||
Reference in new issue
Block a user