Skip to content

Commit

Permalink
Merge pull request #82 from benwaffle/test-79
Browse files Browse the repository at this point in the history
add failing test for #79
  • Loading branch information
MichaelAquilina authored Oct 12, 2019
2 parents 29948dc + 1394e1f commit 98d0927
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_aliases.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 98d0927

Please sign in to comment.