Skip to content

Commit 5d2158f

Browse files
committed
tests/vars: Fixup after lib/format updates
1 parent 2f413f2 commit 5d2158f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/vars.bats

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,18 @@ quotify_expected() {
7373
"[4]=\"$TEST_GO_PLUGINS_DIR/plugin2/bin\""
7474
"[5]=\"$TEST_GO_SCRIPTS_DIR\"")
7575

76+
# Note that the `format` module imports `strings` and `validation`.
77+
local expected_modules=('[0]="complete"'
78+
'[1]="format"'
79+
'[2]="strings"'
80+
'[3]="validation"')
7681
local expected=("declare -rx _GO_CMD=\"$TEST_GO_SCRIPT\""
7782
"declare -ax _GO_CMD_ARGV=(${cmd_argv[*]})"
7883
'declare -ax _GO_CMD_NAME=([0]="test-command" [1]="test-subcommand")'
7984
"declare -rx _GO_CORE_DIR=\"$_GO_CORE_DIR\""
8085
"declare -rx _GO_CORE_URL=\"$_GO_CORE_URL\""
8186
"declare -rx _GO_CORE_VERSION=\"$_GO_CORE_VERSION\""
82-
'declare -a _GO_IMPORTED_MODULES=([0]="complete" [1]="format")'
87+
"declare -a _GO_IMPORTED_MODULES=(${expected_modules[*]})"
8388
"declare -- _GO_PLUGINS_DIR=\"$TEST_GO_PLUGINS_DIR\""
8489
"declare -a _GO_PLUGINS_PATHS=(${plugins_paths[*]})"
8590
"declare -rx _GO_ROOTDIR=\"$TEST_GO_ROOTDIR\""

0 commit comments

Comments
 (0)