newsbot-api/internal/services/cron/scheduler_test.go

35 lines
612 B
Go
Raw Normal View History

package cron_test
import (
"context"
"testing"
2024-04-23 07:15:38 -07:00
"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()
2024-04-23 07:15:38 -07:00
c := cron.NewScheduler(ctx)
c.CheckReddit()
}
func TestCheckYouTube(t *testing.T) {
ctx := context.Background()
2024-04-23 07:15:38 -07:00
c := cron.NewScheduler(ctx)
c.CheckYoutube()
}
func TestCheckTwitch(t *testing.T) {
ctx := context.Background()
2024-04-23 07:15:38 -07:00
c := cron.NewScheduler(ctx)
err := c.CheckTwitch()
if err != nil {
t.Error(err)
}
}