diff --git a/lib/swagger.js b/lib/swagger.js index ba28b91cf..1fa8a416a 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -35,7 +35,7 @@ exports.run = function({ args, opts }) { function error(err) { try { return Promise.reject(new Error(JSON.parse(err.error).description)); - } catch(e) { + } catch (e) { return Promise.reject(new Error('There was an error uploading!')); } } diff --git a/test/docs.test.js b/test/docs.test.js index 9831a6dc7..a1e785289 100644 --- a/test/docs.test.js +++ b/test/docs.test.js @@ -31,8 +31,8 @@ describe('docs command', () => { assert.equal(err.message, 'No folder provided. Usage `rdme docs `'); })); - it('should error if the argument isnt a folder'); - it('should error if the folder contains no markdown files'); + it.todo('should error if the argument isnt a folder'); + it.todo('should error if the folder contains no markdown files'); describe('existing docs', () => { it('should fetch doc and merge with what is returned', () => {