From 1394e1fad2c480bde4650a91fdd2b9b3e182059c Mon Sep 17 00:00:00 2001 From: Ben Iofel Date: Mon, 7 Oct 2019 19:27:02 -0400 Subject: [PATCH] add failing test --- tests/test_aliases.zunit | 9 +++++++++ 1 file changed, 9 insertions(+) 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