Skip to content

Files

Latest commit

 

History

History
58 lines (38 loc) · 1.54 KB

response.test.js.md

File metadata and controls

58 lines (38 loc) · 1.54 KB

Snapshot report for test/response.test.js

The actual snapshot is saved in response.test.js.snap.

Generated by AVA.

createAckEvent()

Snapshot 1

`data: {"choices":[{"index":0,"delta":{"content":"","role":"assistant"}}]}␊

`

createDoneEvent()

Snapshot 1

`data: {"choices":[{"index":0,"finish_reason":"stop","delta":{"content":null}}]}␊

data: [DONE]␊

`

createTextEvent()

Snapshot 1

`data: {"choices":[{"index":0,"delta":{"content":"test","role":"assistant"}}]}␊

`

createConfirmationEvent()

Snapshot 1

`event: copilot_confirmation␊
data: {"type":"action","title":"title","message":"message","confirmation":{"id":"123","foo":"bar"}}␊

`

createErrorsEvent()

Snapshot 1

`event: copilot_errors␊
data: [{"type":"reference","code":"1","message":"test reference error","identifier":"reference-identifier"},{"type":"function","code":"1","message":"test function error","identifier":"function-identifier"},{"type":"agent","code":"1","message":"test agent error","identifier":"agent-identifier"}]␊

`

createReferencesEvent()

Snapshot 1

`event: copilot_references␊
data: [{"type":"test.story","id":"test","data":{"file":"test.js","start":"1","end":"42","content":"function test() {...}"},"is_implicit":false,"metadata":{"display_name":"Lines 1-42 from test.js","display_icon":"test-icon","display_url":"http://github.com/monalisa/hello-world/blob/main/test.js#L1-L42"}}]␊

`