[Tests] update mocks

- make call count test depend on mocks
This commit is contained in:
Jordan Harband
2021-03-11 13:06:41 -08:00
parent 1081ed161b
commit 641f86879f
15 changed files with 750 additions and 27 deletions

View File

@@ -37,7 +37,8 @@ nvm_ls_remote >/dev/null || die "nvm_ls_remote_failed?!"
CALL_COUNT="$(cat "$CALL_COUNT_PATH")"
EXPECTED_COUNT=6
LTS_LINES="$(cat "${MOCKS_DIR}/LTS_names.txt" | wc -l)"
EXPECTED_COUNT="$((LTS_LINES + 1))"
[ "$CALL_COUNT" = "$EXPECTED_COUNT" ] || die "nvm_make_alias called $CALL_COUNT times; expected $EXPECTED_COUNT"
ARGS="$(cat "$ALIAS_ARGS_PATH")"