slack.test.js 556 B

1234567891011121314151617181920
  1. var chai = require('chai')
  2. , expect = chai.expect
  3. , sinon = require('sinon')
  4. , sinonChai = require('sinon-chai')
  5. , utils = require('../utils.js')
  6. ;
  7. chai.use(sinonChai);
  8. describe('Slack Util', function () {
  9. var crowi = new (require(ROOT_DIR + '/lib/crowi'))(ROOT_DIR, process.env);
  10. var slack = require(crowi.libDir + '/util/slack')(crowi);
  11. it('post comment method exists', function() {
  12. expect(slack).to.respondTo('postComment');
  13. });
  14. it('post page method exists', function() {
  15. expect(slack).to.respondTo('postPage');
  16. });
  17. });