[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode 5c9e46b2a1 128/222: Add file for jsdoc tes
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode 5c9e46b2a1 128/222: Add file for jsdoc tests |
Date: |
Sun, 6 Feb 2022 16:59:26 -0500 (EST) |
branch: elpa/typescript-mode
commit 5c9e46b2a1c9b1bd8387dba18c32cb404f67eaeb
Author: Junyoung Clare Jang <jjc9310@gmail.com>
Commit: Ailrun <jjc9310@gmail.com>
Add file for jsdoc tests
---
Makefile | 1 +
typescript-mode-jsdoc-tests.el | 28 ++++++++++++++++++++++++++++
typescript-mode-tests.el | 2 +-
3 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 1846d0e82d..35eda6a12b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ ELS = \
typescript-mode.el \
typescript-mode-test-utilities.el \
typescript-mode-general-tests.el \
+ typescript-mode-jsdoc-tests.el \
typescript-mode-tests.el
ELCS = $(ELS:.el=.elc)
diff --git a/typescript-mode-jsdoc-tests.el b/typescript-mode-jsdoc-tests.el
new file mode 100644
index 0000000000..d21308b1bd
--- /dev/null
+++ b/typescript-mode-jsdoc-tests.el
@@ -0,0 +1,28 @@
+;;; typescript-mode-jsdoc-tests --- This file contains JSDoc related tests for
typescript-mode.el
+
+;;; Commentary:
+;; To understand the definition of JSDoc tag,
+;; see
https://github.com/jsdoc3/jsdoc/blob/b21427343c7294bbf1f14c718a390f3e955e37cb/lib/jsdoc/tag.js#L153-L195
+;; To know how to run the tests, see typescript-mode-tests.el
+
+;;; Code:
+
+(require 'ert)
+(require 'typescript-mode)
+(require 'typescript-mode-test-utilities)
+
+(defun jsdoc-multiline-test (jsdoc-lines specs)
+ ""
+ (let* ((unwrapped-comment-lines
+ (mapcar (lambda (line) (concat " * " line "\n")) jsdoc-lines))
+ (comment-lines
+ (append '("/**\n") unwrapped-comment-lines '(" */"))))
+ (font-lock-test
+ (apply #'concat comment-lines)
+ (cons
+ '(1 . font-lock-comment-delimiter-face)
+ specs))))
+
+(provide 'typescript-mode-jsdoc-tests)
+
+;;; typescript-mode-jsdoc-tests.el ends here
diff --git a/typescript-mode-tests.el b/typescript-mode-tests.el
index c3f2599105..1c8aa75fa2 100644
--- a/typescript-mode-tests.el
+++ b/typescript-mode-tests.el
@@ -1,4 +1,3 @@
-
;;; typescript-mode-tests --- This file contains automated tests for
typescript-mode.el
;;; Commentary:
@@ -11,6 +10,7 @@
(require 'cl)
(require 'typescript-mode-test-utilities)
(require 'typescript-mode-general-tests)
+(require 'typescript-mode-jsdoc-tests)
(provide 'typescript-mode-tests)
- [nongnu] elpa/typescript-mode f36fddeb54 186/222: Merge pull request #136 from phst/dup, (continued)
- [nongnu] elpa/typescript-mode f36fddeb54 186/222: Merge pull request #136 from phst/dup, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 178ceca2d4 188/222: Add option for list items indenting, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 2b1f04a166 191/222: Use ‘(should-not …)’ instead of ‘(should (not …))’., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode daded219e6 199/222: Create initial GitHub actions build-definition, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode ab9c2e4fd0 209/222: Merge pull request #153 from emacs-typescript/feature/build-fix, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 67fd5fe4f2 200/222: Delete .travis.yml, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1043025d42 204/222: Merge pull request #143 from jcs-PR/badge, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 3abc9dc6da 006/222: missed table, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e02a734151 058/222: Improve test-coverage., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a922c27e95 111/222: Merge pull request #76 from ananthakumaran/fix/drop-typescript-parent-mode, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5c9e46b2a1 128/222: Add file for jsdoc tests,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode 1da0c0e8b3 084/222: Try fix CI-build., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 255f670a40 130/222: Merge pull request #92 from dakra/autoload-indent-level, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 32b8e1b6d0 134/222: Merge pull request #94 from jack-williams/add-bigint, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 6ae2c7ab9e 135/222: Highlight multiple implements types (#96), ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 761f3aec6e 161/222: Fix issues reported by package-lint, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e82a4d2527 170/222: Add a new indentation test case that triggers an infinite loop., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 54f14c4827 202/222: Update README.md, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode b369d7d251 206/222: Merge pull request #147 from ltrel/typo-fixes, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode bc37bc4b15 176/222: Fix another member expression infinite loop., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1e9fc35cb9 210/222: Make cask and emacs locations overridable., ELPA Syncer, 2022/02/06