Better state teardown in tests

This commit is contained in:
Fedor Indutny
2025-06-03 15:25:52 -07:00
committed by GitHub
parent 14c4b4ac1b
commit 13430f84e4
12 changed files with 40 additions and 21 deletions

View File

@@ -29,6 +29,7 @@ describe('utils/migrateMessageData', async () => {
});
after(async () => {
await DataWriter.removeAll();
await window.storage.fetch();
});
it('increments attempts for messages which fail to save', async () => {
const messages = new Array(5)