Skip to content

Commit

Permalink
Fix a mistype in tests: fs.exists -> fs.existsSync (#184)
Browse files Browse the repository at this point in the history
fs.exists doesn't return anything and calling it without a callback
is useless. Probably fs.existsSync was meant to be called here.
  • Loading branch information
ChALkeR authored and nickmerwin committed May 1, 2018
1 parent bd667c6 commit 18c71c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/getOptions.js
Expand Up @@ -241,7 +241,7 @@ var testRepoTokenDetection = function(sut, done) {
var path = require('path');

var file = path.join(process.cwd(), '.coveralls.yml'), token, service_name, synthetic = false;
if (fs.exists(file)) {
if (fs.existsSync(file)) {
var yaml = require('js-yaml');
var coveralls_yml_doc = yaml.safeLoad(fs.readFileSync(yml, 'utf8'));
token = coveralls_yml_doc.repo_token;
Expand Down

0 comments on commit 18c71c2

Please sign in to comment.