2022-05-15 21:48:23 -07:00
|
|
|
package cron_test
|
|
|
|
|
2022-06-08 21:17:08 -07:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/jtom38/newsbot/collector/services/cron"
|
|
|
|
)
|
2022-05-15 21:48:23 -07:00
|
|
|
|
|
|
|
func TestInvokeTwitch(t *testing.T) {
|
2022-06-08 21:17:08 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO add database mocks but not sure how to do that yet.
|
|
|
|
func TestCheckReddit(t *testing.T) {
|
|
|
|
ctx := context.Background()
|
2022-06-19 22:02:44 -07:00
|
|
|
c := cron.Cron{}
|
|
|
|
c.CheckReddit(ctx)
|
2022-06-08 21:17:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestCheckYouTube(t *testing.T) {
|
|
|
|
ctx := context.Background()
|
2022-06-19 22:02:44 -07:00
|
|
|
c := cron.Cron{}
|
|
|
|
c.CheckYoutube(ctx)
|
2022-06-08 21:17:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestCheckTwitch(t *testing.T) {
|
|
|
|
ctx := context.Background()
|
2022-06-19 22:02:44 -07:00
|
|
|
c := cron.Cron{}
|
|
|
|
err := c.CheckTwitch(ctx)
|
2022-06-08 21:17:08 -07:00
|
|
|
if err != nil {
|
|
|
|
t.Error(err)
|
|
|
|
}
|
2022-05-15 21:48:23 -07:00
|
|
|
}
|