Skip to content

Commit

Permalink
finish help tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdakos1 committed Apr 2, 2019
1 parent 6911966 commit 806f613
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions __tests__/commands/help.test.js
@@ -0,0 +1,7 @@
const help = require('./../../src/commands/help')

describe('help', () => {
it('shows help', () => {
help()
})
})
3 changes: 1 addition & 2 deletions __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 = () =>
Expand Down
2 changes: 1 addition & 1 deletion src/commands/help.js
Expand Up @@ -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}
Expand Down

0 comments on commit 806f613

Please sign in to comment.