mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Change suffix of test files to comply with test-runner.sh defaults
This commit is contained in:
28
test/lib/internals/register-action.test.sh
Executable file
28
test/lib/internals/register-action.test.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#! /usr/bin/env bash
|
||||
source "../../test-helper.sh"
|
||||
source "../../../src/lib/internals/register-action.sh"
|
||||
|
||||
#
|
||||
# dotify-register-action() tests
|
||||
#
|
||||
|
||||
# Registering an action.
|
||||
dotify-register-action "link"
|
||||
assert 'echo ${DOTIFY_ACTIONS[@]}' "link"
|
||||
unset DOTIFY_ACTIONS
|
||||
|
||||
# Registering multiple actions.
|
||||
dotify-register-action "link"
|
||||
dotify-register-action "git"
|
||||
assert 'echo ${DOTIFY_ACTIONS[@]}' "link git"
|
||||
unset DOTIFY_ACTIONS
|
||||
|
||||
# Registering the same action multiple times.
|
||||
dotify-register-action "link"
|
||||
dotify-register-action "link"
|
||||
assert 'echo ${DOTIFY_ACTIONS[@]}' "link"
|
||||
assert_raises 'dotify-register-action "link"' 1
|
||||
unset DOTIFY_ACTIONS
|
||||
|
||||
|
||||
assert_end "dotify-register-action() tests"
|
||||
Reference in New Issue
Block a user