mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Add Dotfile commands
This commit is contained in:
14
test/lib/dotfile-commands/default_action-test.sh
Executable file
14
test/lib/dotfile-commands/default_action-test.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#! /usr/bin/env bash
|
||||
source "../../test-helper.sh"
|
||||
source "../../../src/lib/dotfile-commands/default_action.sh"
|
||||
|
||||
#
|
||||
# root_link() tests
|
||||
#
|
||||
|
||||
# Sets DOTIFY_OPT_DEFAULT_ACTION
|
||||
default_action foo
|
||||
assert 'echo $DOTIFY_OPT_DEFAULT_ACTION' 'foo'
|
||||
default_action foo bar
|
||||
assert 'echo $DOTIFY_OPT_DEFAULT_ACTION' 'foo bar'
|
||||
assert_end "root_link()"
|
||||
14
test/lib/dotfile-commands/root_link-test.sh
Executable file
14
test/lib/dotfile-commands/root_link-test.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#! /usr/bin/env bash
|
||||
source "../../test-helper.sh"
|
||||
source "../../../src/lib/dotfile-commands/root_link.sh"
|
||||
|
||||
#
|
||||
# root_link() tests
|
||||
#
|
||||
|
||||
# Sets DOTIFY_OPT_ROOT_LINK
|
||||
root_link .dots
|
||||
assert 'echo $DOTIFY_OPT_ROOT_LINK' '.dots'
|
||||
root_link my dots
|
||||
assert 'echo $DOTIFY_OPT_ROOT_LINK' 'my dots'
|
||||
assert_end "root_link()"
|
||||
Reference in New Issue
Block a user