aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJoshua Davis <[email protected]>2016-11-11 07:53:36 -0800
committerJoshua Davis <[email protected]>2016-11-11 07:53:36 -0800
commitf9c36973d799da13faa4adaf48a8ddee6b711927 (patch)
tree5ee52a82b2f3f4768cb215348b66072c0a9e3c54 /test
parentacc1fd8315edc64ef5a0cb233143b7b85017fd4c (diff)
downloadnode-coveralls-f9c36973d799da13faa4adaf48a8ddee6b711927.tar.xz
node-coveralls-f9c36973d799da13faa4adaf48a8ddee6b711927.zip
implemented code to parse concatenated file paths (fixes #143)
Diffstat (limited to 'test')
-rw-r--r--test/convertLcovToCoveralls.js5
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();
});
-
});
});