aboutsummaryrefslogtreecommitdiff
path: root/test/handleInput.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-04-24 00:46:49 +0300
committerGitHub <[email protected]>2020-04-23 14:46:49 -0700
commita0c69414b7dbeef7aaefdb00ad78dff2a724b192 (patch)
treea97078ca6f04e3297a652ad642e7ee3b505dcfa5 /test/handleInput.js
parent1615297a56f1eaa962ccf794c7b3596f8a146660 (diff)
downloadnode-coveralls-a0c69414b7dbeef7aaefdb00ad78dff2a724b192.tar.xz
node-coveralls-a0c69414b7dbeef7aaefdb00ad78dff2a724b192.zip
Move fixtures to test/fixtures. (#286)
Diffstat (limited to 'test/handleInput.js')
-rw-r--r--test/handleInput.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/handleInput.js b/test/handleInput.js
index 46cbe50..c46aa17 100644
--- a/test/handleInput.js
+++ b/test/handleInput.js
@@ -15,7 +15,7 @@ describe('handleInput', () => {
});
it('returns an error when there\'s an error getting options', done => {
sinon.stub(index, 'getOptions', cb => cb('some error', {}));
- const path = sysPath.join(__dirname, '/../fixtures/onefile.lcov');
+ const path = sysPath.join(__dirname, './fixtures/onefile.lcov');
const input = fs.readFileSync(path, 'utf8');
index.handleInput(input, err => {
err.should.equal('some error');
@@ -27,7 +27,7 @@ describe('handleInput', () => {
sinon.stub(index, 'convertLcovToCoveralls', (input, options, cb) => {
cb('some error');
});
- const path = sysPath.join(__dirname, '/../fixtures/onefile.lcov');
+ const path = sysPath.join(__dirname, './fixtures/onefile.lcov');
const input = fs.readFileSync(path, 'utf8');
index.handleInput(input, err => {
err.should.equal('some error');
@@ -39,7 +39,7 @@ describe('handleInput', () => {
sinon.stub(index, 'sendToCoveralls', (postData, cb) => {
cb('some error');
});
- const path = sysPath.join(__dirname, '/../fixtures/onefile.lcov');
+ const path = sysPath.join(__dirname, './fixtures/onefile.lcov');
const input = fs.readFileSync(path, 'utf8');
index.handleInput(input, err => {
err.should.equal('some error');
@@ -51,7 +51,7 @@ describe('handleInput', () => {
sinon.stub(index, 'sendToCoveralls', (postData, cb) => {
cb(null, { statusCode: 500 }, 'body');
});
- const path = sysPath.join(__dirname, '/../fixtures/onefile.lcov');
+ const path = sysPath.join(__dirname, './fixtures/onefile.lcov');
const input = fs.readFileSync(path, 'utf8');
index.handleInput(input, err => {
err.should.equal('Bad response: 500 body');
@@ -63,7 +63,7 @@ describe('handleInput', () => {
sinon.stub(index, 'sendToCoveralls', (postData, cb) => {
cb(null, { statusCode: 200 }, 'body');
});
- const path = sysPath.join(__dirname, '/../fixtures/onefile.lcov');
+ const path = sysPath.join(__dirname, './fixtures/onefile.lcov');
const input = fs.readFileSync(path, 'utf8');
index.handleInput(input, (err, body) => {
should.not.exist(err);