Skip to content

Commit e9218d1

Browse files
committed
Fix for the broken test
1 parent 03fd1e2 commit e9218d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/dataApi/attachmentManagement.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ it('should delete the correct attachment folder if a note is deleted', function
267267
const storageKey = 'storageKey'
268268
const noteKey = 'noteKey'
269269
findStorage.findStorage = jest.fn(() => dummyStorage)
270-
sander.rimraf = jest.fn()
270+
sander.rimrafSync = jest.fn()
271271

272272
const expectedPathToBeDeleted = path.join(dummyStorage.path, systemUnderTest.DESTINATION_FOLDER, noteKey)
273273
systemUnderTest.deleteAttachmentFolder(storageKey, noteKey)
274274
expect(findStorage.findStorage).toHaveBeenCalledWith(storageKey)
275-
expect(sander.rimraf).toHaveBeenCalledWith(expectedPathToBeDeleted)
275+
expect(sander.rimrafSync).toHaveBeenCalledWith(expectedPathToBeDeleted)
276276
})

0 commit comments

Comments
 (0)