mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
added double mount test
This commit is contained in:
parent
92b22d1c50
commit
ea1726a661
15
test/misc.js
15
test/misc.js
@ -33,6 +33,21 @@ tape('mount + unmount + mount', function (t) {
|
||||
})
|
||||
})
|
||||
|
||||
tape('mount + unmount + mount with same instance fails', function (t) {
|
||||
const fuse = new Fuse(mnt, {}, { force: true, debug: false })
|
||||
|
||||
fuse.mount(function (err) {
|
||||
t.error(err, 'no error')
|
||||
t.ok(true, 'works')
|
||||
fuse.unmount(function () {
|
||||
fuse.mount(function (err) {
|
||||
t.ok(err, 'had error')
|
||||
t.end()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
tape('mnt point must exist', function (t) {
|
||||
const fuse = new Fuse('.does-not-exist', {}, { debug: false })
|
||||
fuse.mount(function (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user