Add basic tests
This commit is contained in:
parent
7dd4f3066c
commit
a0316d35b0
2 changed files with 21 additions and 4 deletions
14
tests/test_auto_notify.zunit
Normal file
14
tests/test_auto_notify.zunit
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env zunit
|
||||
|
||||
@setup {
|
||||
load "../auto-notify.plugin.zsh"
|
||||
}
|
||||
|
||||
@test 'version exported' {
|
||||
assert "$AUTO_NOTIFY_VERSION" is_not_empty
|
||||
}
|
||||
|
||||
@test 'hook functions are loaded by default' {
|
||||
assert '_auto_notify_track' in $preexec_functions
|
||||
assert '_auto_notify_send' in $precmd_functions
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue