Skip to content

Commit

Permalink
feat(slack): create slack wrapper class to extend slack
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed Dec 16, 2015
1 parent 7d7a926 commit aade873
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/slack-wrapper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import SlackClient from 'slack-client'

class SlackWrapper extends SlackClient {
constructor (...args) {
super(...args)
}
}

module.exports = SlackWrapper
12 changes: 12 additions & 0 deletions test/slack-wrapper.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import SlackClient from 'slack-client'
import SlackWrapper from '../src/slack-wrapper'

describe('Slack Wrapper', () => {
describe('initialization', () => {
it('is an instance of slack-client', () => {
let slackInstance = new SlackWrapper()

expect(slackInstance).to.be.an.instanceOf(SlackClient)
})
})
})

0 comments on commit aade873

Please sign in to comment.