Commit 8e3f27d94151e3682cfb67b523cb43e859f7514c
1 parent
60fa053ec8
Added tests for the wrapper command syntax.
Showing 2 changed files with 22 additions and 1 deletions Inline Diff
Makefile
| 1 | .PHONY: tests | 1 | .PHONY: tests |
| 2 | 2 | ||
| 3 | tests: | 3 | tests: |
| 4 | ZDOTDIR="${PWD}/tests" cram -i --shell=zsh tests/branch-bundle.t \ | 4 | ZDOTDIR="${PWD}/tests" cram -i --shell=zsh tests/branch-bundle.t \ |
| 5 | tests/bundle.t tests/url-resolver.t | 5 | tests/bundle.t tests/url-resolver.t tests/antigen-wrapper.t |
| 6 | 6 |
tests/antigen-wrapper.t
| File was created | 1 | Create a dummy antigen command. | |
| 2 | |||
| 3 | $ antigen-dummy () { | ||
| 4 | > echo me dummy | ||
| 5 | > } | ||
| 6 | |||
| 7 | Check the normal way of calling it | ||
| 8 | |||
| 9 | $ antigen-dummy | ||
| 10 | me dummy | ||
| 11 | |||
| 12 | Call with the wrapper syntax. | ||
| 13 | |||
| 14 | $ antigen dummy | ||
| 15 | me dummy | ||
| 16 | |||
| 17 | Call with an alias | ||
| 18 | |||
| 19 | $ alias a=antigen | ||
| 20 | $ a dummy | ||
| 21 | me dummy | ||
| 22 |