diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/convertLcovToCoveralls.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/convertLcovToCoveralls.js b/test/convertLcovToCoveralls.js index 7e67f3d..25a0e97 100644 --- a/test/convertLcovToCoveralls.js +++ b/test/convertLcovToCoveralls.js @@ -134,17 +134,16 @@ describe("convertLcovToCoveralls", function(){ }; var originalExistsSync = fs.existsSync; - fs.existsSync = function () { return false; }; + fs.existsSync = function () { return true; }; convertLcovToCoveralls(input, {filepath: libpath}, function(err, output){ fs.readFileSync = originalReadFileSync; fs.existsSync = originalExistsSync; should.not.exist(err); - output.source_files.should.be.empty(); + output.source_files[0].name.should.equal(path.join("svgo", "config.js")); done(); }); - }); }); |
