package cron_test import ( "context" "testing" "git.jamestombleson.com/jtom38/newsbot-api/internal/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.NewScheduler(ctx) c.CheckReddit() } func TestCheckYouTube(t *testing.T) { ctx := context.Background() c := cron.NewScheduler(ctx) c.CheckYoutube() } func TestCheckTwitch(t *testing.T) { ctx := context.Background() c := cron.NewScheduler(ctx) err := c.CheckTwitch() if err != nil { t.Error(err) } }