test(OpenCode TLS): 補齊非 false 值驗證
AI / 計算版本號 (pull_request) Successful in 2s
AI / Code Review (pull_request) Failing after 1m17s

This commit is contained in:
2026-06-22 10:21:53 +00:00
parent 4dc50941b0
commit ca6b066a52
3 changed files with 20 additions and 32 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ describe('getLLMConfig', () => {
});
it('skips OpenCode TLS verification for empty string and non-false values', () => {
for (const value of ['', '0', 'true', 'yes']) {
for (const value of ['', '0', 'true', 'yes', '1', 'on', 'custom']) {
process.env.OPENCODE_SKIP_TLS_VERIFY = value;
assert.equal(shouldSkipOpenCodeTLSVerify(), true);
}