mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
test(refactor): switch to bashunit and start fleshing out a new test suite
This commit is contained in:
22
test-legacy/libexec/tmuxifier-tmux.test.sh
Executable file
22
test-legacy/libexec/tmuxifier-tmux.test.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#! /usr/bin/env bash
|
||||
source "../test-helper.sh"
|
||||
source "${root}/lib/util.sh"
|
||||
|
||||
#
|
||||
# tmuxifier-tmux tests.
|
||||
#
|
||||
|
||||
# Setup.
|
||||
test-socket-tmux new-session -d -s foobar
|
||||
test-socket-tmux new-session -d -s dude
|
||||
baseCommand="${root}/bin/tmuxifier tmux"
|
||||
|
||||
# Passes all arguments to Tmux.
|
||||
assert "${baseCommand} list-sessions -F \"- #{session_name}\"" \
|
||||
"- dude\n- foobar"
|
||||
|
||||
# Tear down.
|
||||
kill-test-server
|
||||
|
||||
# End of tests.
|
||||
assert_end "tmuxifier-tmux"
|
||||
Reference in New Issue
Block a user