newsbot-api/services/cron/scheduler_test.go

35 lines
573 B
Go
Raw Normal View History

package cron_test
import (
"context"
"testing"
"github.com/jtom38/newsbot/collector/services/cron"
)
func TestInvokeTwitch(t *testing.T) {
}
// TODO add database mocks but not sure how to do that yet.
func TestCheckReddit(t *testing.T) {
ctx := context.Background()
c := cron.Cron{}
c.CheckReddit(ctx)
}
func TestCheckYouTube(t *testing.T) {
ctx := context.Background()
c := cron.Cron{}
c.CheckYoutube(ctx)
}
func TestCheckTwitch(t *testing.T) {
ctx := context.Background()
c := cron.Cron{}
err := c.CheckTwitch(ctx)
if err != nil {
t.Error(err)
}
}