diff --git a/tests/spec/path-resolution.spec.js b/tests/spec/path-resolution.spec.js index b53f932..f44f040 100644 --- a/tests/spec/path-resolution.spec.js +++ b/tests/spec/path-resolution.spec.js @@ -32,6 +32,8 @@ describe('path resolution', function() { var fs = util.fs(); fs.mkdir('/mydir', function(error) { + if(error) throw error; + fs.symlink('/mydir', '/mydirectorylink', function(error) { if(error) throw error; @@ -148,6 +150,7 @@ describe('path resolution', function() { if(error) throw error; fs.stat('/myfile0', function(error, result) { if(error) throw error; + expect(result).to.exist; createSymlinkChain(1, function() { fs.stat('/myfile11', function(error, result) { @@ -201,6 +204,7 @@ describe('path resolution', function() { if(error) throw error; fs.stat('/myfile', function(error, result) { if(error) throw error; + expect(result).to.exist; fs.open('/myfile2', 'w', function(error, result) { if(error) throw error;