1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-30 17:12:31 +01:00

Fix sudo after npm errors

This commit is contained in:
nvbn
2015-04-08 19:16:15 +02:00
parent b1c21d5a08
commit 173a4300b4
3 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ from thefuck.rules.sudo import match, get_new_command
def test_match():
assert match(Command('', '', 'Permission denied'))
assert match(Command('', '', 'permission denied'))
assert match(Command('', '', "npm ERR! Error: EACCES, unlink"))
assert not match(Command('', '', ''))