update to first properly working version

This commit is contained in:
2017-09-17 14:53:00 +02:00
parent e99fb08674
commit 3fc712af8a
13 changed files with 439 additions and 10 deletions

View File

@ -1,8 +1,22 @@
import { expect, tap } from 'tapbundle'
import { Qenv } from 'qenv'
let testQenv = new Qenv(process.cwd(), process.cwd() + '/.nogit')
import * as slackme from '../ts/index'
tap.test('first test', async () => {
console.log(slackme.standardExport)
let testSlackme: slackme.Slackme
tap.test('should create a valid slackme instance', async () => {
testSlackme = new slackme.Slackme(process.env.SLACK_TOKEN)
})
tap.test('should send a message to Slack', async () => {
let slackMessage = new slackme.SlackMessage({
text: 'hi. This is a text',
color: '#3cb371'
})
testSlackme.sendMessage(slackMessage, 'random')
})
tap.start()