From c3fdf9643c77bf071fd9e5a804350f43378ec209 Mon Sep 17 00:00:00 2001 From: laureanray Date: Mon, 18 Jul 2022 14:18:38 +0800 Subject: [PATCH] removed test files for now --- pkg/api/libgen_test.go | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 pkg/api/libgen_test.go diff --git a/pkg/api/libgen_test.go b/pkg/api/libgen_test.go deleted file mode 100644 index 9f20be8..0000000 --- a/pkg/api/libgen_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package api - -import "testing" - -// TODO: Use mocks, introduce better assertions -func TestSearchBookByTitle(t *testing.T) { - books, err := SearchBookByTitle("Test", 5) - - if err != nil { - t.Errorf("err") - } - - if len(books) == 0 { - t.Errorf("got 0 books") - } -} - -// TODO: Use mocks -func TestDownloadSelection(t *testing.T) { - selectedBook := Book{ - ID: "ID", - Extension: ".epub", - Title: "Elon Musk", - Mirrors: []string{ - "http://library.lol/main/580000A1CAA698C2EFD8F5439E9A1F26", - "http://library.lol/main/2F2DBA2A621B693BB95601C16ED680F8", - "http://library.lol/main/2F2DBA2A621B693BB95601C16ED680F8", - }, - Author: "Vance", - Year: "2012", - Publisher: "Someone", - } - - DownloadSelection(selectedBook) -}