mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-16 03:06:27 +00:00
deleting a folder should also delete the attachments -> fixes #1903
This commit is contained in:
@@ -13,6 +13,7 @@ const TestDummy = require('../fixtures/TestDummy')
|
||||
const os = require('os')
|
||||
const faker = require('faker')
|
||||
const fs = require('fs')
|
||||
const sander = require('sander')
|
||||
|
||||
const storagePath = path.join(os.tmpdir(), 'test/export-note')
|
||||
|
||||
@@ -60,3 +61,8 @@ test.serial('Export a folder', (t) => {
|
||||
t.false(fs.existsSync(filePath))
|
||||
})
|
||||
})
|
||||
|
||||
test.after.always(function after () {
|
||||
localStorage.clear()
|
||||
sander.rimrafSync(storagePath)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user