1
0
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:
ehhc
2018-05-19 20:38:10 +02:00
parent 0ca4e6ca4f
commit 86a6311f75
3 changed files with 39 additions and 5 deletions

View File

@@ -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)
})