1
0
mirror of https://github.com/zplug/zplug synced 2025-08-31 02:00:38 +02:00
zplug/test/autoload/commands/__update___test.zsh
b4b4r07 f2b2bc8f18 Add test/autoload/commands
- Add tests
- Fix some statements
- Restore some compatibility of v1
2016-02-10 00:27:40 +09:00

27 lines
463 B
Bash

#!/bin/zsh
: before
{
source "$ZPLUG_ROOT/init.zsh"
source "$ZPLUG_ROOT/test/.helpers/mock.zsh"
export ZPLUG_HOME="$ZPLUG_ROOT/test/.fixtures"
local expect actual
}
describe "__update__"
it "Unknown option"
expect="[zplug] --unknown: Unknown option"
actual="$(zplug check --unknown 2>&1)"
assert.false $status
assert.equals "$expect" "$actual"
end
end
: after
{
zplugs=()
unset expect actual
}