diff --git a/__tests__/commands/help.test.js b/__tests__/commands/help.test.js new file mode 100644 index 0000000..5e22e3f --- /dev/null +++ b/__tests__/commands/help.test.js @@ -0,0 +1,7 @@ +const help = require('./../../src/commands/help') + +describe('help', () => { + it('shows help', () => { + help() + }) +}) diff --git a/__tests__/commands/init.test.js b/__tests__/commands/init.test.js index 15caa39..7411c28 100644 --- a/__tests__/commands/init.test.js +++ b/__tests__/commands/init.test.js @@ -1,10 +1,9 @@ const assert = require('assert') const sinon = require('sinon') -const rewire = require('rewire') const stdin = require('mock-stdin').stdin const fs = require('fs-extra') const COS = require('ibm-cos-sdk') -const init = rewire('./../../src/commands/init') +const init = require('./../../src/commands/init') const api = require('./../../src/api/api') const wait = () => diff --git a/src/commands/help.js b/src/commands/help.js index 6409a27..587b7de 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -2,7 +2,7 @@ const { dim } = require('chalk') const { version } = require('./../../package.json') // TODO: Make this dynamic -module.exports = options => { +module.exports = () => { const title = `C${dim('loud')} A${dim('nnotations')} CLI` console.log(`┌───────────────────────┐ │ ${title} │