* feat(system-prompt): admit section updates incrementally * docs(system-prompt): accept retirement restart gap * test(system-prompt): cover retirement and reentry before admission * test(system-prompt): align rebase fixtures and persistence history * fix: align section prompt consumers and CI fixtures * test: pin credentials for section snapshot fixtures * test: align remaining snapshots with section admission * test: preserve section metadata in Web and PowerShell replays * refactor(system-prompt): retire sections through Cordis cleanup * chore: refresh section admission history after rebase * fix(system-prompt): advance admission head after compaction * fix(system-prompt): trim sections before admission hashing * docs: move system upgrade guides to current version * docs: add system message contribution cookbook * perf(system-prompt): avoid indexing history for admission * refactor(system-prompt): derive admission from logged sections * test(system-prompt): update lifecycle and compaction consumers * test(system-prompt): refresh CLI section event expectations * test(system-prompt): refresh question composer section metadata * feat(system-prompt): resolve same-name sections by scope * refactor(persona): use ordinary section registrations * refactor(system-prompt): clarify assembly and related control flow * test(system-prompt): reconcile rebased section snapshots * test(python): use current system text helper after rebase * test(system-prompt): refresh CLI expected section blocks * test(system-prompt): reconcile latest master integration * test(agent-loop): seed tools before deferred addition assertion * refactor(compaction): replace system heads when compacting prefixes * refactor(system-prompt): separate source text and notice attribution * fix(system-prompt): preserve legacy instructions in compaction snapshots * refactor(compaction): build system snapshots while reading the summary prefix * refactor(compaction): rebuild current system instructions * refactor(system-prompt): defer compaction rebuild to admission * refactor(system-prompt): remove redundant fixtures and setup * fix(plan-mode): announce committed user transitions * docs(system-prompt): reconcile section lifecycle and compaction design * refactor(system-prompt): consolidate projection version increments * fix(system-prompt): reconcile master integration and replay fixtures * docs(system-prompt): align upgrade guide with current release * refactor(system-prompt): make admission operations explicit * fix(system-prompt): reconcile master API and release changes * docs(system-prompt): regenerate catalogs after master refresh * refactor(llm-pi-ai): delegate text rendering to pi-ai * fix(llm-pi-ai): preserve blank lines between system text parts * refactor(system-prompt): remove redundant retirement metadata * refactor(system-prompt): own admission and use canonical surface targets * refactor(system-prompt): compare captured sections at commitment Assembly fixes section text and lifecycle; PromptAssembly.systemUpdates() compares them with the committed projection when the loop commits. This replaces SystemPrompt.admit(), needsRebuild() and isCurrent(), the SystemAdmission export, the loop's reassembly after compaction, and SessionSurface.systemHeadResetSeq. The projection records a pending rebuild as a boolean that an attributed reset clears. After a compaction inside a step, the rebuilt head uses the sections captured for that step; later source changes arrive as ordinary updates at the next step. * test: await the session read fixture and type a matcher for lint * test(tool-executor-ptc): describe same-name section override on executor replacement Duplicate section names no longer reject a scoped executor; the earlier registration is overridden and returns as an ordinary update when the executor leaves. * docs(upgrade-guide): move system-prompt integrations to v0.2.2-rc.3 The root version on master is 0.2.2-rc.3; verify-upgrade-guides rejects a guide added under an earlier version directory. * refactor(system-prompt): rebuild over system messages without sections A system message without source.sections now marks rebuilding pending, like a compaction summary. The next model attempt replaces the head with current sections and clears later system messages. This removes the separate legacy flag and its appended whole-prompt replacement and notice. Sessions written by earlier releases, migrated logs, and imported DeepSeek conversations take the same path, so the importer and its tests return to their master versions. * test(web): refresh the imported-conversation recording and drop a stray bytecode file The Web recording for a resumed DeepSeek import was recorded while the prompt was appended after the imported history; the head is replaced again, as on master. The .pyc under the macOS signing skill was staged by accident in an earlier merge. * refactor(session): scan system nodes on read surface.systemNodes is read only when a system rebuild is written. Scanning the current surface nodes on each read restores the surface fold's plan types and state to their master definitions, which no longer carry the system message. * refactor(session): rename SystemSurfaceNode.hasContent to isEmpty The flag reports that the logged content array has no blocks. isEmpty matches the documented "empty head" wording and covers a head that was written empty without ever being cleared. * refactor(llm): join system text through extractTextContent extractTextContent gains a trim option that trims each text block and omits blocks left empty. The DeepSeek serializer, the pi-ai converter, and the prompt inspector use it with a blank-line separator in place of three hand-written joins. The pi-ai converter now trims system and developer text like the other two, so whitespace-only blocks are omitted there as well. * test(snapshots): refresh the PowerShell and cordis-inspect recordings The two PowerShell scenarios still held the initial system message as one unattributed block; replay now writes one block per section with its attribution. The cordis-inspect-jsdoc recording embeds the API catalog, which names SystemSurfaceNode.isEmpty since the rename. * test(plan-mode,harness-dev-context): cover a rejected pre-step and a repeated legacy prompt A rejected pre-step must leave a queued plan-mode switch pending and unannounced until the next accepted step. A second unattributed system message with the same legacy paragraphs must keep the admitted paragraphs. * test(web): refresh Web recordings for section-attributed system messages Twenty-seven Web recordings still held the initial system message as one unattributed block. Replay now writes one text block per section with its attribution; twenty-six recordings differ only in that line. plan-review also records the plan-mode switch notice before the first prompt and appends a plan:status update on exit in place of a head replacement and a series header, so its expanded golden gains the notice row. The Creator persona test joins the system text blocks with blank lines, as the adapters do, before matching the persona line. * refactor(system-prompt): require the retry argument of systemUpdates The agent loop passes it on every attempt. A custom loop that omitted it on a retry received a full comparison in place of the pending rebuild, with no diagnostic; the type now makes each caller state which attempt it is. * docs(upgrade-guide): move the system prompt integrations guide to v0.2.2-rc.5 The root version is 0.2.2-rc.5 after the master merge, and verify-upgrade-guides rejects a guide added under an earlier version directory. * test(web): refresh the mention path presence recording for section-attributed system messages * test: align two specs that master left failing The DeepSeek settings spec waited for a saved notice carrying the provider label from before the rename to DeepSeek API. The Windows packaging workflow spec seeded one of the two helpers that the Stage workflow helpers step copies. * chore: remove a Python cache file committed by mistake
296 lines
16 KiB
TypeScript
296 lines
16 KiB
TypeScript
import { Context } from '@deepseek-ai/cordis'
|
|
import type { Agent } from '@deepseek-ai/dsh-agent'
|
|
import { provideWorkingDirectoryFixture } from '@deepseek-ai/dsh-agent-loop-testkit'
|
|
import { brandString } from '@deepseek-ai/dsh-brand'
|
|
import { createUserMessage, type ToolCallId, type ContentBlock } from '@deepseek-ai/dsh-llm'
|
|
import { PtcRuntime, type PtcRunRequest, type PtcRunResult, type PtcRunSpec } from '@deepseek-ai/dsh-ptc-runtime'
|
|
import SandboxPolicy from '@deepseek-ai/dsh-sandbox-policy'
|
|
import SessionStore, { type SessionId } from '@deepseek-ai/dsh-session'
|
|
import SessionProjections from '@deepseek-ai/dsh-session-projection'
|
|
import SystemPrompt from '@deepseek-ai/dsh-system-prompt'
|
|
import { NativeToolExecutor } from '@deepseek-ai/dsh-tool-executor-native'
|
|
import ToolRuntime, { defineTool, type ToolDefinition } from '@deepseek-ai/dsh-tools'
|
|
import ApprovalService, { type ApprovalOutcome } from '@deepseek-ai/dsh-user-approval'
|
|
import { describe, expect, it, onTestFinished, vi } from 'vitest'
|
|
import { createRunCodeTool, RunCodeConfig } from '../src/run-code.ts'
|
|
|
|
class ControlledRuntime extends PtcRuntime {
|
|
readonly language: string = 'typescript'
|
|
readonly isolation = 'fixture'
|
|
override get retainsState() { return true }
|
|
override get programFormat() { return 'repl' as const }
|
|
override get executionInstructions() { return 'Top-level await is supported; the last expression is returned.' }
|
|
override get timeout() { return { defaultMs: 120_000, maxMs: 600_000 } }
|
|
behavior: (spec: PtcRunSpec) => Promise<PtcRunResult> = async () => ({ output: [] })
|
|
|
|
resolve(request: PtcRunRequest): PtcRunSpec {
|
|
return { ...request, cwd: request.cwd ?? process.cwd(), timeoutMs: request.timeoutMs ?? this.timeout.defaultMs }
|
|
}
|
|
|
|
run(spec: PtcRunSpec): Promise<PtcRunResult> { return this.behavior(spec) }
|
|
}
|
|
|
|
function privateTool(execute = vi.fn(async () => 'private result')) {
|
|
return defineTool({
|
|
name: 'cua', description: 'Operate the test computer.', parameters: {},
|
|
output: { schema: { type: 'string' }, render: (_args, value) => [{ type: 'text', text: value }] },
|
|
execute,
|
|
})
|
|
}
|
|
|
|
async function setup(definition: ToolDefinition, limits?: Partial<RunCodeConfig>) {
|
|
const ctx = new Context()
|
|
const runtimeContext = new Context()
|
|
const agentContext = new Context()
|
|
onTestFinished(async () => {
|
|
await ctx.fiber.dispose()
|
|
await agentContext.fiber.dispose()
|
|
await runtimeContext.fiber.dispose()
|
|
})
|
|
provideWorkingDirectoryFixture(ctx)
|
|
await ctx.plugin(SessionProjections)
|
|
await ctx.plugin(SystemPrompt)
|
|
await ctx.plugin(ToolRuntime)
|
|
await ctx.plugin(SessionStore)
|
|
ctx.tools.setExecutor(new NativeToolExecutor(ctx))
|
|
await runtimeContext.plugin(ControlledRuntime)
|
|
const runtime = runtimeContext.ptcRuntime as ControlledRuntime
|
|
const session = ctx.sessions.create(brandString<SessionId>('private-program'))
|
|
session.append('turn/start', { turn: 1 })
|
|
const agent = { ctx: agentContext, id: session.id, session } as Agent
|
|
const fiber = await ctx.plugin(Object.assign((owner: Context) => {
|
|
owner.tools.register(createRunCodeTool(owner, {
|
|
name: 'cua_run_code', description: 'Run computer operations through cua.',
|
|
runtime, tools: [definition],
|
|
...limits === undefined ? {} : { limits },
|
|
}))
|
|
}, { inject: ['tools'] }))
|
|
const execute = async (args: Record<string, unknown> = {}, name = 'cua_run_code') => {
|
|
const signal = new AbortController().signal
|
|
const toolSet = await ctx.tools.resolve({ agent, modelSelection: { provider: 'test', model: 'test' }, signal })
|
|
try {
|
|
return await ctx.tools.execute({
|
|
calls: [{ type: 'tool-call', id: brandString<ToolCallId>('program'), name, arguments: JSON.stringify({ code: 'await cua.inspect()', description: 'Inspect the current computer', ...args }) }],
|
|
agent, toolSet, signal,
|
|
})
|
|
} finally { toolSet.dispose() }
|
|
}
|
|
return { ctx, runtime, agent, agentContext, session, fiber, execute }
|
|
}
|
|
|
|
describe('registered program tool factory', () => {
|
|
it.each(['python', 'ruby', 'constructor'])('rejects unsupported runtime %s before creating a program tool', async (language) => {
|
|
const ctx = new Context()
|
|
onTestFinished(async () => { await ctx.fiber.dispose() })
|
|
class UnsupportedRuntime extends ControlledRuntime { override readonly language = language }
|
|
await ctx.plugin(UnsupportedRuntime)
|
|
expect(() => createRunCodeTool(ctx, {
|
|
name: 'unsupported_program', description: 'Run a program.', runtime: ctx.ptcRuntime, tools: [],
|
|
})).toThrow(expect.objectContaining({ name: 'ToolContextUnavailableError', code: 'TOOL_CONTEXT_UNAVAILABLE' }))
|
|
})
|
|
|
|
it('uses the explicit runtime and binds only private definitions under native execution', async () => {
|
|
const body = vi.fn(async () => 'private result')
|
|
const definition = privateTool(body)
|
|
const { ctx, runtime, agent, execute } = await setup(definition)
|
|
const unrelated = vi.fn(async () => 'unrelated')
|
|
ctx.tools.register({ ...privateTool(unrelated), name: 'other' })
|
|
expect(ctx.get('ptcRuntime')).toBeUndefined()
|
|
expect(ctx.tools.get('cua')).toBeUndefined()
|
|
expect((await execute({}, 'cua')).results[0]?.result).toMatchObject({ isError: true, error: { info: { code: 'UNKNOWN_TOOL' } } })
|
|
const schema = ctx.tools.schemas().find(tool => tool.name === 'cua_run_code')!
|
|
expect(schema.description).toContain('Run computer operations through cua.')
|
|
expect(schema.description).toContain(runtime.executionInstructions)
|
|
expect(JSON.stringify(schema.parameters)).toContain('Default 120000; capped at 600000')
|
|
runtime.behavior = async (request) => {
|
|
expect(request.program).toBe('await cua.inspect()')
|
|
expect(request.stateOwner).toBe(agent)
|
|
expect(Object.keys(request.bindings[0]!.functions)).toEqual(['cua'])
|
|
expect(request.discardCompletion).toBe(true)
|
|
expect(await request.bindings[0]!.functions.cua!({})).toBe('private result')
|
|
return { output: [{ type: 'text', text: 'private result' }] }
|
|
}
|
|
expect((await execute()).results[0]?.result).toMatchObject({ isError: false, value: { logs: ['private result'] } })
|
|
expect(body).toHaveBeenCalledOnce()
|
|
expect(unrelated).not.toHaveBeenCalled()
|
|
expect(Object.isFrozen(definition.parameters)).toBe(false)
|
|
})
|
|
|
|
it('preserves approval rejection and guard identity for unregistered nested tools', async () => {
|
|
const body = vi.fn(async () => 'private result')
|
|
const { ctx, runtime, session, execute } = await setup(privateTool(body))
|
|
await ctx.plugin(ApprovalService, { policy: 'ask' })
|
|
let approval: ApprovalOutcome = 'rejected'
|
|
let guarded = false
|
|
ctx.on('approval/request', () => Promise.resolve(approval))
|
|
ctx.on('tools/pre-execute', (exec, next) => exec.name === 'cua'
|
|
? Promise.resolve({ kind: 'ask', reason: 'Confirm computer operation' }) : next())
|
|
ctx.tools.guard(exec => exec.name === 'cua' && guarded
|
|
? { reason: 'Computer operation blocked', info: { name: 'ComputerGuardError', code: 'COMPUTER_BLOCKED' } } : undefined)
|
|
runtime.behavior = async (request) => {
|
|
await expect(request.bindings[0]!.functions.cua!({})).rejects.toThrow()
|
|
return { output: [] }
|
|
}
|
|
expect((await execute()).results[0]?.result.isError).toBe(false)
|
|
approval = 'allowed-once'
|
|
guarded = true
|
|
expect((await execute()).results[0]?.result.isError).toBe(false)
|
|
expect(body).not.toHaveBeenCalled()
|
|
expect(session.snapshotEvents().filter(event => event.type === 'tool/ptc-dispatch').map(event => event.data.error))
|
|
.toEqual([{ name: 'ApprovalError', code: 'APPROVAL_REJECTED' }, { name: 'ComputerGuardError', code: 'COMPUTER_BLOCKED' }])
|
|
})
|
|
|
|
it('uses its own name for escalation and omits the retained owner', async () => {
|
|
const { ctx, runtime, execute } = await setup(privateTool())
|
|
await ctx.plugin(SandboxPolicy, { mode: 'read-only', workspaceRoot: process.cwd() })
|
|
await ctx.plugin(ApprovalService, { policy: 'ask' })
|
|
vi.spyOn(runtime, 'sandboxMode', 'get').mockReturnValue('read-only')
|
|
const requested: string[] = []
|
|
ctx.on('approval/request', (request) => {
|
|
requested.push(request.toolName)
|
|
return Promise.resolve<ApprovalOutcome>('allowed-once')
|
|
})
|
|
runtime.behavior = async (request) => {
|
|
expect(request.stateOwner).toBeUndefined()
|
|
expect(request.sandboxPolicy?.mode).toBe('workspace-write')
|
|
return { output: [], sandbox: { mode: 'workspace-write', denied: true } }
|
|
}
|
|
const result = (await execute({ sandbox_permissions: 'workspace-write', justification: 'Write computer output' })).results[0]!.result
|
|
expect(result.isError).toBe(false)
|
|
expect(requested).toEqual(['cua_run_code'])
|
|
expect(JSON.stringify(result.content)).toContain('Nested tools retain their own policies and approvals')
|
|
})
|
|
|
|
it('records nested results while forwarding images and deferred context from private tools', async () => {
|
|
type Attachment = Extract<ContentBlock, { type: 'image' }>['attachment']
|
|
const image: ContentBlock = { type: 'image', attachment: {
|
|
attachmentId: brandString<Attachment['attachmentId']>('sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
|
|
mediaType: 'image/png', width: 1, height: 1, bytes: 1,
|
|
} }
|
|
const definition = defineTool({
|
|
name: 'capture', description: 'Capture the test computer.', parameters: {},
|
|
output: {
|
|
schema: { type: 'string' }, render: () => [image], presentationMeta: () => ({ screen: 1 }),
|
|
},
|
|
execute: async (_args, exec) => {
|
|
exec.deferContext(createUserMessage({ source: { kind: 'ptc-mode' }, content: [{ type: 'text', text: 'capture context' }] }))
|
|
exec.concludeTurn()
|
|
return 'raw snapshot'
|
|
},
|
|
})
|
|
const { ctx, runtime, session, execute } = await setup(definition)
|
|
ctx.on('tools/ptc-dispatch-log', async () => [{ type: 'text', text: 'durable screenshot preview' }])
|
|
runtime.behavior = async (request) => {
|
|
expect(await request.bindings[0]!.functions.capture!({})).toBe('raw snapshot')
|
|
return { output: [{ type: 'text', text: 'inspection complete' }] }
|
|
}
|
|
const batch = await execute()
|
|
expect(batch.results[0]?.result.content).toEqual([{ type: 'text', text: 'inspection complete' }])
|
|
expect(batch.concluded).toBe(true)
|
|
expect(batch.additionalContexts.map(context => context.content)).toEqual([[image], [{ type: 'text', text: 'capture context' }]])
|
|
const events = session.snapshotEvents().filter(event => event.type === 'tool/ptc-dispatch-start' || event.type === 'tool/ptc-dispatch')
|
|
expect(events.map(event => event.type)).toEqual(['tool/ptc-dispatch-start', 'tool/ptc-dispatch'])
|
|
expect(events[1]?.data).toMatchObject({
|
|
rootCallId: 'program', parentCallId: 'program', subCallId: 'program:ptc:1', name: 'capture', arguments: {},
|
|
isError: false, content: [{ type: 'text', text: 'durable screenshot preview' }], meta: { screen: 1 },
|
|
})
|
|
})
|
|
|
|
it.each([false, true])('retains inspected images from private program tools, output overflow=%s', async (overflow) => {
|
|
type Attachment = Extract<ContentBlock, { type: 'image' }>['attachment']
|
|
const image: ContentBlock = { type: 'image', attachment: {
|
|
attachmentId: brandString<Attachment['attachmentId']>('sha256:inspected'),
|
|
mediaType: 'image/png', width: 1, height: 1, bytes: 1,
|
|
} }
|
|
const { runtime, execute } = await setup(privateTool(vi.fn(async () => 'private result')))
|
|
runtime.behavior = async () => ({
|
|
output: [{ type: 'text', text: 'before image' }, image],
|
|
...overflow ? { outputTruncated: true } : {},
|
|
})
|
|
|
|
const result = (await execute()).results[0]!.result
|
|
|
|
expect(result.isError).toBe(false)
|
|
expect(result.content.slice(0, 2)).toEqual([{ type: 'text', text: 'before image' }, image])
|
|
if (overflow) {
|
|
expect(result.value).toMatchObject({ outputTruncated: true })
|
|
expect(result.content[2]).toMatchObject({
|
|
type: 'text', text: expect.stringContaining('Program completed. Output was truncated;') as string,
|
|
})
|
|
}
|
|
})
|
|
|
|
it('cancels on owner disposal and awaits nested cleanup before releasing the factory', async () => {
|
|
const entered = Promise.withResolvers<undefined>()
|
|
const aborted = Promise.withResolvers<undefined>()
|
|
const cleanup = Promise.withResolvers<undefined>()
|
|
const definition = defineTool({
|
|
name: 'cua', description: 'Wait for computer cleanup.', parameters: {},
|
|
output: { schema: { type: 'string' }, render: (_args, value) => [{ type: 'text', text: value }] },
|
|
execute: async (_args, exec) => {
|
|
exec.signal.addEventListener('abort', () => { aborted.resolve(undefined) }, { once: true })
|
|
entered.resolve(undefined)
|
|
await cleanup.promise
|
|
return 'cleaned'
|
|
},
|
|
})
|
|
const { ctx, runtime, agent, agentContext, session, fiber, execute } = await setup(definition)
|
|
const release = vi.spyOn(runtime, 'release')
|
|
runtime.behavior = async (request) => {
|
|
void request.bindings[0]!.functions.cua!({}).catch(() => undefined)
|
|
await new Promise<void>((resolve) => {
|
|
request.signal?.addEventListener('abort', () => { resolve() }, { once: true })
|
|
})
|
|
return { output: [], error: { kind: 'abort', message: 'runtime cancelled' } }
|
|
}
|
|
const running = execute()
|
|
let disposing: Promise<void> | undefined
|
|
try {
|
|
await entered.promise
|
|
let disposed = false
|
|
disposing = fiber.dispose().then(() => { disposed = true })
|
|
await aborted.promise
|
|
expect(disposed).toBe(false)
|
|
expect(session.snapshotEvents().filter(event => event.type === 'tool/ptc-dispatch')).toHaveLength(0)
|
|
cleanup.resolve(undefined)
|
|
expect((await running).results[0]?.result).toMatchObject({ isError: true, error: { info: { code: 'CODE_RUN_FAILED' } } })
|
|
await disposing
|
|
expect(ctx.tools.get('cua_run_code')).toBeUndefined()
|
|
expect(session.snapshotEvents().filter(event => event.type === 'tool/ptc-dispatch')).toMatchObject([
|
|
{ data: { isError: true, error: { name: 'AbortError', code: 'ABORTED' } } },
|
|
])
|
|
await agentContext.fiber.dispose()
|
|
expect(release).toHaveBeenCalledExactlyOnceWith(agent)
|
|
} finally {
|
|
cleanup.resolve(undefined)
|
|
await running
|
|
await disposing
|
|
}
|
|
})
|
|
|
|
it('applies configurable call allowances using the registered tool name', async () => {
|
|
const body = vi.fn(async () => 'private result')
|
|
const { runtime, session, execute } = await setup(privateTool(body), { maxSubCallsPerMinute: 60, maxParallelSubCalls: 1 })
|
|
runtime.behavior = async (request) => {
|
|
await request.bindings[0]!.functions.cua!({})
|
|
await expect(request.bindings[0]!.functions.cua!({})).rejects.toThrow('cua_run_code exceeded its limit of 1 tool calls')
|
|
return { output: [], error: { kind: 'abort', message: 'allowance exhausted' } }
|
|
}
|
|
const result = (await execute({ timeoutMs: 1000 })).results[0]!.result
|
|
expect(result).toMatchObject({ isError: true, error: { info: { code: 'CODE_RUN_FAILED' } } })
|
|
expect(JSON.stringify(result.content)).toContain('smaller cua_run_code calls')
|
|
expect(body).toHaveBeenCalledOnce()
|
|
expect(session.snapshotEvents().filter(event => event.type === 'tool/ptc-dispatch-start')).toHaveLength(1)
|
|
})
|
|
|
|
it('rejects duplicate private bindings and invalid limits before registering effects', async () => {
|
|
const definition = privateTool()
|
|
const { ctx, runtime } = await setup(definition)
|
|
const options = { name: 'duplicate_program', description: 'Duplicate bindings.', runtime, tools: [definition, definition] }
|
|
expect(() => createRunCodeTool(ctx, options)).toThrow('duplicate binding cua')
|
|
expect(() => createRunCodeTool(ctx, { ...options, tools: [definition], limits: { maxParallelSubCalls: 0 } })).toThrow()
|
|
expect(RunCodeConfig({})).toEqual({ maxSubCallsPerMinute: 1024, maxParallelSubCalls: 10 })
|
|
expect(ctx.tools.get('duplicate_program')).toBeUndefined()
|
|
})
|
|
})
|