You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try to fs.link() one to the other (i.e., newpath exists)
expect an EEXISTS error to be returned
Somewhat similar to this test, but first create a file and use that instead of /mydirlink
it('should not allow links to a directory',function(done){varfs=util.fs();fs.mkdir('/mydir',function(error){if(error)throwerror;fs.link('/mydir','/mydirlink',function(error){expect(error).to.exist;expect(error.code).to.equal('EPERM');done();});});});
The text was updated successfully, but these errors were encountered:
https://codecov.io/gh/filerjs/filer/src/master/src/filesystem/implementation.js#L954 is a branch we don't test. To hit it, I think we need:
fs.link.spec.js
fs.link()
one to the other (i.e.,newpath
exists)EEXISTS
error to be returnedSomewhat similar to this test, but first create a file and use that instead of
/mydirlink
The text was updated successfully, but these errors were encountered: