[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode b4109ac220 192/222: Merge pull request #13
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode b4109ac220 192/222: Merge pull request #139 from phst/should-not |
Date: |
Sun, 6 Feb 2022 16:59:31 -0500 (EST) |
branch: elpa/typescript-mode
commit b4109ac2208becca7dc3812ae29b36314345f6f0
Merge: 42a60e5c88 2b1f04a166
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: GitHub <noreply@github.com>
Merge pull request #139 from phst/should-not
Use ‘(should-not …)’ instead of ‘(should (not …))’.
---
typescript-mode-general-tests.el | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/typescript-mode-general-tests.el b/typescript-mode-general-tests.el
index aa1f1f8c78..d9def0a2f6 100644
--- a/typescript-mode-general-tests.el
+++ b/typescript-mode-general-tests.el
@@ -65,7 +65,7 @@
(typescript-mode)
(let ((test-reference (typescript-test-get-doc)))
(typescript-test-indent-all)
- (should (not (string= test-reference (typescript-test-get-doc)))))
+ (should-not (string= test-reference (typescript-test-get-doc))))
(kill-buffer)))
(ert-deftest list-items-indent-comma-first ()
@@ -83,7 +83,7 @@
(let ((test-reference (typescript-test-get-doc))
(typescript-indent-list-items nil))
(typescript-test-indent-all)
- (should (not (string= test-reference (typescript-test-get-doc)))))
+ (should-not (string= test-reference (typescript-test-get-doc))))
(kill-buffer)))
(defun get-all-matched-strings (to-match)
@@ -101,8 +101,8 @@ have a rule name or a severity."
to-match))
(matches (and match (get-all-matched-strings to-match))))
(should match)
- (should (not (nth 1 matches)))
- (should (not (nth 2 matches)))
+ (should-not (nth 1 matches))
+ (should-not (nth 2 matches))
(should (string-equal (nth 3 matches)
"src/modules/authenticator.ts"))
(should (string-equal (nth 4 matches) "1"))
@@ -117,7 +117,7 @@ a rule name, no severity."
to-match))
(matches (and match (get-all-matched-strings to-match))))
(should match)
- (should (not (nth 1 matches)))
+ (should-not (nth 1 matches))
(should (string-equal (nth 2 matches) "(quotemark) "))
(should (string-equal (nth 3 matches)
"src/modules/authenticator.ts"))
@@ -133,8 +133,8 @@ a severity set to ERROR, no rule name."
to-match))
(matches (and match (get-all-matched-strings to-match))))
(should match)
- (should (not (nth 1 matches)))
- (should (not (nth 2 matches)))
+ (should-not (nth 1 matches))
+ (should-not (nth 2 matches))
(should (string-equal (nth 3 matches)
"src/modules/authenticator.ts"))
(should (string-equal (nth 4 matches) "1"))
@@ -150,7 +150,7 @@ a severity set to WARNING, no rule name."
(matches (and match (get-all-matched-strings to-match))))
(should match)
(should (string-equal (nth 1 matches) "WARNING"))
- (should (not (nth 2 matches)))
+ (should-not (nth 2 matches))
(should (string-equal (nth 3 matches)
"src/modules/authenticator.ts"))
(should (string-equal (nth 4 matches) "1"))
@@ -486,7 +486,7 @@ function foo<Z, Y, Z & Y, Z | Y | Z, Y<X<X, Y>>>()\n"
;; Ensure we require symbol boundaries.
(test-with-fontified-buffer
"Notclass Foo"
- (should (not (eq (get-face-at "Foo") 'font-lock-type-face))))
+ (should-not (eq (get-face-at "Foo") 'font-lock-type-face)))
;; Other common ways of defining types.
(test-with-fontified-buffer
"interface Thing {}"
@@ -503,17 +503,17 @@ function foo<Z, Y, Z & Y, Z | Y | Z, Y<X<X, Y>>>()\n"
(test-with-fontified-buffer
"function test(var1: Type1, var2: Type2): RetType {\n}"
- (should (not (eq (get-face-at "var1") 'font-lock-type-face)))
+ (should-not (eq (get-face-at "var1") 'font-lock-type-face))
(should (eq (get-face-at "Type1") 'font-lock-type-face))
- (should (not (eq (get-face-at "var2") 'font-lock-type-face)))
+ (should-not (eq (get-face-at "var2") 'font-lock-type-face))
(should (eq (get-face-at "Type2") 'font-lock-type-face))
(should (eq (get-face-at "RetType") 'font-lock-type-face)))
(test-with-fontified-buffer
"class foo { test(var1: Type1, var2: Type2): RetType {\n} }"
- (should (not (eq (get-face-at "var1") 'font-lock-type-face)))
+ (should-not (eq (get-face-at "var1") 'font-lock-type-face))
(should (eq (get-face-at "Type1") 'font-lock-type-face))
- (should (not (eq (get-face-at "var2") 'font-lock-type-face)))
+ (should-not (eq (get-face-at "var2") 'font-lock-type-face))
(should (eq (get-face-at "Type2") 'font-lock-type-face))
(should (eq (get-face-at "RetType") 'font-lock-type-face)))
@@ -598,10 +598,10 @@ import... from...."
;; replicate that behavior here.
(test-with-fontified-buffer
"import 'a';\nimport { x } from 'b';\nconst foo = 'c';import { x }\nfrom
'd';"
- (should (not (flyspell-predicate-test "'a")))
- (should (not (flyspell-predicate-test "'b")))
+ (should-not (flyspell-predicate-test "'a"))
+ (should-not (flyspell-predicate-test "'b"))
(should (flyspell-predicate-test "'c"))
- (should (not (flyspell-predicate-test "'d"))))
+ (should-not (flyspell-predicate-test "'d")))
(test-with-fontified-buffer
;; This is valid TypeScript.
"const from = 'a';"
@@ -619,7 +619,7 @@ import... from...."
(cl-flet
((should-fail ()
(let ((point-before (point)))
- (should (not (typescript--move-to-end-of-plain-string)))
+ (should-not (typescript--move-to-end-of-plain-string))
(should (eq (point) point-before))))
(should-not-fail (expected)
(let ((result
(typescript--move-to-end-of-plain-string)))
- [nongnu] elpa/typescript-mode 46e032e932 054/222: Fix list of values compilation mode should use., (continued)
- [nongnu] elpa/typescript-mode 46e032e932 054/222: Fix list of values compilation mode should use., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 56a1ea861f 082/222: Merge pull request #55 from bkruczyk/fix-regex-font-locking, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 0353bd72f8 133/222: Add bigint, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 18dc5a36a6 140/222: Fixes typo in the README file., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 36105abbb1 141/222: Add 26.1 to the versions we test on., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 08ceb01ff3 142/222: We no longer support 24.3, fixes #100., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f33751e98f 145/222: Fix a case of bad indentation., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1ec94013e7 146/222: Run emacs --version prior to running cask., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 871c23111a 157/222: rename to typescript-mode and move to root, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f2761fb313 178/222: Extract type-name regexp into reusable constant., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode b4109ac220 192/222: Merge pull request #139 from phst/should-not,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode 12b6aae381 196/222: Merge pull request #141 from cireu/fix-auto-mode-list-re, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 3562c0c1f3 203/222: Add badges to README., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 072f8ad43f 213/222: fix eval invocation in typescript--re-search-backward to work with lexical scoping, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 2a58631230 207/222: Bump version for ELPA, ELPA Syncer, 2022/02/06