mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Add tests for tmux layout helper
This commit is contained in:
20
test/lib/layout-helpers/tmux.test.sh
Executable file
20
test/lib/layout-helpers/tmux.test.sh
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
source "../../test-helper.sh"
|
||||||
|
source "${root}/lib/layout-helpers.sh"
|
||||||
|
|
||||||
|
#
|
||||||
|
# tmux() tests.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Passes all arguments to tmuxifier-tmux.
|
||||||
|
stub tmuxifier-tmux
|
||||||
|
tmux -V
|
||||||
|
tmux --help
|
||||||
|
tmux new -s dude
|
||||||
|
assert_raises "stub_called_with tmuxifier-tmux -V" 0
|
||||||
|
assert_raises "stub_called_with tmuxifier-tmux --help" 0
|
||||||
|
assert_raises "stub_called_with tmuxifier-tmux new -s dude" 0
|
||||||
|
restore tmuxifier-tmux
|
||||||
|
|
||||||
|
# End of tests.
|
||||||
|
assert_end "tmux()"
|
||||||
Reference in New Issue
Block a user