MCPcopy Create free account
hub / github.com/anthropics/claude-code / asked

Function asked

mods/diff/tests/register.test.ts:2845–2856  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

2843 on('prompt.submit', ($, e) => ({ text: e.text, context: e.context }))
2844
2845 async function asked(key: string) {
2846 await world.clock.advance(Fixtures.SETTLE_MS)
2847
2848 const text = Fixtures.textOf(await $.ui.render(Fixtures.PANE))
2849
2850 await $.ui.press({ plugin: 'diff', key })
2851 await world.clock.settle()
2852
2853 const sent = await $.prompt.submit(Fixtures.typedPromptOf('why?'))
2854
2855 return { text, sent }
2856 }
2857
2858 const toldAs = (name: string) => ({
2859 context: [

Callers 1

register.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected