test: tighten clear behavior assertions

这个提交包含在:
Zain 2026-03-19 19:01:27 +08:00
父节点 fb2b028f91
当前提交 c187bed711

查看文件

@ -59,6 +59,8 @@ describe('DiagnosticLogStore', () => {
await store.clear(); await store.clear();
expect(mockChromeStorage.remove).toHaveBeenCalledWith(DIAGNOSTIC_STORAGE_KEYS.RECENT_LOGS); expect(mockChromeStorage.remove).toHaveBeenCalledTimes(1);
expect(mockChromeStorage.remove).toHaveBeenNthCalledWith(1, DIAGNOSTIC_STORAGE_KEYS.RECENT_LOGS);
expect(mockChromeStorage.remove).not.toHaveBeenCalledWith(DIAGNOSTIC_STORAGE_KEYS.LAST_FAILURE);
}); });
}); });