spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / tests / pinned-variable-refusal.test.ts
13 lines · 388 BRaw
1import { describe, expect, test, tier } from 'claude-code/testing'
2
3import Hooks from '../hooks'
4
5tier('prepend')
6
7describe('pinned-variable-refusal', () => {
8 test('it names the setting and the variable, and not who set it', () => {
9 expect(Hooks.pinnedVariableRefusal('CORP_PROXY')).toBe(
10 'env (managed): CORP_PROXY is not for plugins outside policy to change',
11 )
12 })
13})