4 Commits

Author SHA1 Message Date
ec17d7835e 2.0.12 2019-09-18 12:28:42 +02:00
cb072d0f6a fix(core): update 2019-09-18 12:28:41 +02:00
1240505227 2.0.11 2019-09-18 12:27:52 +02:00
09c0bc4e6f fix(core): update 2019-09-18 12:27:52 +02:00
4 changed files with 3 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/slack", "name": "@mojoio/slack",
"version": "2.0.10", "version": "2.0.12",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/slack", "name": "@mojoio/slack",
"version": "2.0.10", "version": "2.0.12",
"private": false, "private": false,
"description": "slack api abstraction for the mojo.io ecosystem", "description": "slack api abstraction for the mojo.io ecosystem",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -57,7 +57,7 @@ tap.test('should send a message to Slack by directly calling the message', async
testSlackme testSlackme
); );
await testSlackMessage.sendToRoom('random'); await testSlackMessage.sendToRoom('random');
await tools.delayFor(5000); await tools.delayFor(1000);
await testSlackMessage.updateAndSend({ await testSlackMessage.updateAndSend({
author_name: 'GitLab CI', author_name: 'GitLab CI',
author_link: 'https://gitlab.com/', author_link: 'https://gitlab.com/',

View File

@ -22,14 +22,12 @@ export class Slackme {
} }
postUrl = this.updateUrl; postUrl = this.updateUrl;
} }
console.log(requestBody);
const response = await plugins.smartrequest.postJson(postUrl, { const response = await plugins.smartrequest.postJson(postUrl, {
headers: { headers: {
'Authorization': `Bearer ${this.slackToken}` 'Authorization': `Bearer ${this.slackToken}`
}, },
requestBody requestBody
}); });
console.log(response.body);
return response; return response;
} }
} }