You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/run_tests.sh
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -104,15 +104,15 @@ fi
104
104
105
105
# Test 8: update check command works
106
106
test_start "update check command"
107
-
if CODE_NOTIFY_INSTALL_METHOD=script CODE_NOTIFY_LATEST_VERSION="$CURRENT_VERSION" ./bin/code-notify update check 2>&1| grep -q "Already up to date";then
107
+
if CODE_NOTIFY_INSTALL_METHOD=script CODE_NOTIFY_LATEST_VERSION="$CURRENT_VERSION" ./bin/code-notify update check 2>&1| grep -q "Code-Notify is up to date";then
108
108
test_pass
109
109
else
110
110
test_fail "update check command failed"
111
111
fi
112
112
113
113
# Test 9: update command skips reinstalling current versions
114
114
test_start "no-op update command"
115
-
if CODE_NOTIFY_INSTALL_METHOD=script CODE_NOTIFY_LATEST_VERSION="$CURRENT_VERSION" ./bin/code-notify update 2>&1| grep -q "Already up to date";then
115
+
if CODE_NOTIFY_INSTALL_METHOD=script CODE_NOTIFY_LATEST_VERSION="$CURRENT_VERSION" ./bin/code-notify update 2>&1| grep -q "Code-Notify is up to date";then
116
116
test_pass
117
117
else
118
118
test_fail "update command did not skip reinstalling the current version"
@@ -126,6 +126,14 @@ else
126
126
test_fail "project trust warning behavior failed"
127
127
fi
128
128
129
+
# Test 11: explicit all aliases map to global behavior
130
+
test_start "all tool aliases"
131
+
if bash tests/test-all-alias.sh >/dev/null 2>&1;then
0 commit comments