update Tests

This commit is contained in:
2017-09-17 15:25:00 +02:00
parent 3fc712af8a
commit df3bf79e2f
4 changed files with 79 additions and 33 deletions

View File

@ -13,8 +13,23 @@ tap.test('should create a valid slackme instance', async () => {
tap.test('should send a message to Slack', async () => {
let slackMessage = new slackme.SlackMessage({
text: 'hi. This is a text',
color: '#3cb371'
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()
})
testSlackme.sendMessage(slackMessage, 'random')
})