Add basic tests

This commit is contained in:
Michael Aquilina 2019-07-14 11:14:24 +01:00
parent 7dd4f3066c
commit a0316d35b0
No known key found for this signature in database
GPG key ID: 636066730B056BD1
2 changed files with 21 additions and 4 deletions

View 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
}