versioneye-slack
Version:
Send versioneye report to slack
30 lines (24 loc) • 882 B
JavaScript
;
const VersionEyeSlack = require('../index');
describe('VersionEyeSlack class', function() {
let sut;
let versioneyeApiKey = '16494ff0725ffc9f8448';
let slackWebhookUrl = 'https://hooks.slack.com/services/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';
beforeEach(function() {
sut = new VersionEyeSlack(versioneyeApiKey, slackWebhookUrl);
});
describe('postNotifications', function() {
it('should post notifications', function() {
return sut.postNotifications().then(res => {
console.log(res);
});
});
});
describe('postProjectSummary', function() {
it.only('should post a summary of a project', function() {
return sut.postProjectSummary('cybozu-private/bee').then(res => {
console.log(res);
});
});
});
});