diff --git a/tests/test_aliases.zunit b/tests/test_aliases.zunit index 878e69a..521c6b0 100644 --- a/tests/test_aliases.zunit +++ b/tests/test_aliases.zunit @@ -132,3 +132,12 @@ assert $output contains 'Found existing alias for "echo"' assert $state equals 0 } + +@test 'issue 79 - expands aliases' { + alias gd='git diff' + alias gdw='git diff --word-diff' + run _check_aliases "gd --word-diff" + + assert $output contains 'You should use: "gdw"' + assert $state equals 0 +} \ No newline at end of file