From a0c69414b7dbeef7aaefdb00ad78dff2a724b192 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 24 Apr 2020 00:46:49 +0300 Subject: Move fixtures to test/fixtures. (#286) --- test/handleInput.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/handleInput.js') 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); -- cgit v1.2.3