fix(core): update

This commit is contained in:
2019-09-05 13:09:13 +02:00
parent f0d7e5c998
commit 552d3dc211
4 changed files with 43 additions and 25 deletions

View File

@ -37,25 +37,28 @@ tap.test('should send a message to Slack', async () => {
});
tap.test('should send a message to Slack by directly calling the message', async () => {
testSlackMessage = new slackme.SlackMessage({
author_name: 'GitLab CI',
author_link: 'https://gitlab.com/',
pretext: '*Good News*: Build successfull!',
color: '#3cb371',
fields: [
{
title: 'Branch',
value: 'Lossless Cloud',
short: true
},
{
title: 'Product ID',
value: 'pushrocks',
short: true
}
],
ts: new Date().getTime() / 1000
}, testSlackme);
testSlackMessage = new slackme.SlackMessage(
{
author_name: 'GitLab CI',
author_link: 'https://gitlab.com/',
pretext: '*Good News*: Build successfull!',
color: '#3cb371',
fields: [
{
title: 'Branch',
value: 'Lossless Cloud',
short: true
},
{
title: 'Product ID',
value: 'pushrocks',
short: true
}
],
ts: new Date().getTime() / 1000
},
testSlackme
);
await testSlackMessage.sendToRoom('random');
});