diff options
| author | Troy Hinckley | 2021-05-17 18:33:28 -0600 |
|---|---|---|
| committer | Troy Hinckley | 2021-05-17 18:33:28 -0600 |
| commit | ee292b80bebc2e7a4f3b32bd51363adbb28878d2 (patch) | |
| tree | 50d25cf6f02ddacbd09b3c95edeb3b45cb27f44e | |
| parent | 24c50da3b272f571c320ef800a80c0bc0ce38e28 (diff) | |
| download | emacs-ee292b80bebc2e7a4f3b32bd51363adbb28878d2.tar.gz emacs-ee292b80bebc2e7a4f3b32bd51363adbb28878d2.zip | |
Fix tests and documentation for hook
| -rw-r--r-- | test/lisp/use-package/use-package-tests.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el index 3825aa36487..b8063a046f5 100644 --- a/test/lisp/use-package/use-package-tests.el +++ b/test/lisp/use-package/use-package-tests.el | |||
| @@ -998,15 +998,17 @@ | |||
| 998 | 'foopkg :hook args))) | 998 | 'foopkg :hook args))) |
| 999 | (should-error (norm nil)) | 999 | (should-error (norm nil)) |
| 1000 | (should (equal (norm '(bar)) | 1000 | (should (equal (norm '(bar)) |
| 1001 | '((bar . foopkg-mode)))) | ||
| 1002 | (should (equal (norm '((bar . foopkg))) | ||
| 1001 | '((bar . foopkg)))) | 1003 | '((bar . foopkg)))) |
| 1002 | (should (equal (norm '((bar . baz))) | 1004 | (should (equal (norm '((bar . baz))) |
| 1003 | '((bar . baz)))) | 1005 | '((bar . baz)))) |
| 1004 | (should (equal (norm '(((bar baz) . quux))) | 1006 | (should (equal (norm '(((bar baz) . quux))) |
| 1005 | '(((bar baz) . quux)))) | 1007 | '(((bar baz) . quux)))) |
| 1006 | (should (equal (norm '(bar baz)) | 1008 | (should (equal (norm '(bar baz)) |
| 1007 | '(((bar baz) . foopkg)))) | 1009 | '(((bar baz) . foopkg-mode)))) |
| 1008 | (should (equal (norm '((bar baz) (quux bow))) | 1010 | (should (equal (norm '((bar baz) (quux bow))) |
| 1009 | '(((bar baz) . foopkg) ((quux bow) . foopkg)))) | 1011 | '(((bar baz) . foopkg-mode) ((quux bow) . foopkg-mode)))) |
| 1010 | (should (equal (norm '((bar . baz) (quux . bow))) | 1012 | (should (equal (norm '((bar . baz) (quux . bow))) |
| 1011 | '((bar . baz) (quux . bow)))) | 1013 | '((bar . baz) (quux . bow)))) |
| 1012 | (should (equal (norm '(((bar1 bar2) . baz) ((quux1 quux2) . bow))) | 1014 | (should (equal (norm '(((bar1 bar2) . baz) ((quux1 quux2) . bow))) |
| @@ -1945,9 +1947,9 @@ | |||
| 1945 | (use-package nonexistent | 1947 | (use-package nonexistent |
| 1946 | :hook lisp-mode) | 1948 | :hook lisp-mode) |
| 1947 | `(when (locate-library nonexistent) | 1949 | `(when (locate-library nonexistent) |
| 1948 | (unless (fboundp 'nonexistent) | 1950 | (unless (fboundp 'nonexistent-mode) |
| 1949 | (autoload #'nonexistent "nonexistent" nil t)) | 1951 | (autoload #'nonexistent-mode "nonexistent" nil t)) |
| 1950 | (add-hook 'lisp-mode-hook #'nonexistent))))) | 1952 | (add-hook 'lisp-mode-hook #'nonexistent-mode))))) |
| 1951 | 1953 | ||
| 1952 | (ert-deftest bind-key/:prefix-map () | 1954 | (ert-deftest bind-key/:prefix-map () |
| 1953 | (match-expansion | 1955 | (match-expansion |