MCPcopy Create free account
hub / github.com/SplootCode/splootcode / saveScenario

Function saveScenario

packages/editor/src/components/test_request_panel.tsx:210–214  ·  view source on GitHub ↗
(scenario: HTTPScenario)

Source from the content-addressed store, hash-verified

208 }, [project.runSettings])
209
210 const saveScenario = async (scenario: HTTPScenario) => {
211 const savedScenario = await project.putHTTPScenario(scenario)
212 setEditingRequest(savedScenario)
213 setRunSettings(project.runSettings)
214 }
215
216 const deleteScenario = async (scenarioID: number) => {
217 await project.deleteHTTPScenario(scenarioID)

Callers 2

setValueFunction · 0.85
RequestScenarioEditFunction · 0.85

Calls 1

putHTTPScenarioMethod · 0.80

Tested by

no test coverage detected