1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Chore: Remove warning from test

This commit is contained in:
Laurent Cozic 2023-12-17 11:59:11 +00:00
parent 26459ea9dc
commit bb47c59414

View File

@ -145,9 +145,11 @@ describe('import-enex-md-gen', () => {
it('should keep importing notes when one of them is corrupted', async () => {
const filePath = `${enexSampleBaseDir}/ImportTestCorrupt.enex`;
const errors: any[] = [];
const consoleSpy = jest.spyOn(console, 'warn').mockImplementation(jest.fn());
await importEnex('', filePath, {
onError: (error: any) => errors.push(error),
});
consoleSpy.mockRestore();
const notes = await Note.all();
expect(notes.length).toBe(2);