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:
parent
26459ea9dc
commit
bb47c59414
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user