summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/yeetube-tests.el32
1 files changed, 0 insertions, 32 deletions
diff --git a/test/yeetube-tests.el b/test/yeetube-tests.el
deleted file mode 100644
index ee7fb6a..0000000
--- a/test/yeetube-tests.el
+++ /dev/null
@@ -1,32 +0,0 @@
-;;; Code:
-(load-file "../yeetube.el")
-
-(setq package-archives '(("melpa" . "https://melpa.org/packages/")
- ("elpa" . "https://elpa.gnu.org/packages/")
- ("nongnu" . "https://elpa.nongnu.org/nongnu/")))
-(package-initialize)
-
-(unless package-archive-contents
- (package-refresh-contents))
-
-(require 'ert)
-(require 'yeetube)
-
-
-(package-install 'package-lint)
-(require 'package-lint)
-
-
-(ert-deftest test-is-youtube? ()
- (should (equal (yeetube-youtube-p "youtube.com") t))
- (should (equal (yeetube-youtube-p "localhost") nil))
- (should (equal (yeetube-youtube-p "yewtu.be") nil)))
-
-(ert-deftest test-package-lint ()
- (let ((package-lint-errors (package-lint-buffer (find-file-noselect "../yeetube.el"))))
- (should (equal package-lint-errors nil))))
-
-(ert-run-tests-batch-and-exit)
-
-(provide 'yeetube-tests)
-;;; yeetube-tests.el ends here