From 42c2477c0108b5c78906d96e1b1399404baf60ef Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Sun, 28 Jul 2024 14:14:28 +0200 Subject: [PATCH] added TestGetVideoList --- test/api_content_test.go | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/test/api_content_test.go b/test/api_content_test.go index 3d890ad..c74b112 100644 --- a/test/api_content_test.go +++ b/test/api_content_test.go @@ -11,9 +11,23 @@ func TestCreatorInfo(t *testing.T) { t.Fatalf(err.Error()) } c.IsDebug() - resp, err := c.CreatorInfo() + /*resp, err := c.CreatorInfo() + if err != nil { + t.Fatalf(err.Error()) + }*/ + log.Println("resp ", c.IsDebug()) +} + + +func TestGetVideoList( t *testing.T){ + c, err := GetTikTok() + if err != nil { + t.Fatalf(err.Error()) + } + c.IsDebug() + resp, err := c.GetVideoList(int64(20)) if err != nil { t.Fatalf(err.Error()) } log.Println("resp ", resp) -} +} \ No newline at end of file