diff options
| author | Сковорода Никита Андреевич <[email protected]> | 2018-05-01 23:52:04 +0300 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2018-05-01 13:52:04 -0700 |
| commit | 18c71c2e6d38cd58325250e6f9b34b2e93972b81 (patch) | |
| tree | eefd58f88706ef83ed0c98b1ef9cf00c5d5b5264 /test | |
| parent | bd667c617bbf5ff921f6b3734a991cde874db320 (diff) | |
| download | node-coveralls-18c71c2e6d38cd58325250e6f9b34b2e93972b81.tar.xz node-coveralls-18c71c2e6d38cd58325250e6f9b34b2e93972b81.zip | |
Fix a mistype in tests: fs.exists -> fs.existsSync (#184)
fs.exists doesn't return anything and calling it without a callback
is useless. Probably fs.existsSync was meant to be called here.
Diffstat (limited to 'test')
| -rw-r--r-- | test/getOptions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/getOptions.js b/test/getOptions.js index 6e8d898..916028e 100644 --- a/test/getOptions.js +++ b/test/getOptions.js @@ -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; |
