chore: update test cases in app
This commit is contained in:
@@ -38,6 +38,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -141,6 +142,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -158,6 +160,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -181,6 +184,7 @@ const samples = [
|
|||||||
],
|
],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -209,6 +213,7 @@ const samples = [
|
|||||||
],
|
],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -239,6 +244,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -268,6 +274,7 @@ const samples = [
|
|||||||
],
|
],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -291,6 +298,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -312,6 +320,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -335,6 +344,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -366,6 +376,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -430,6 +441,7 @@ const samples = [
|
|||||||
],
|
],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -458,6 +470,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -515,6 +528,7 @@ const samples = [
|
|||||||
],
|
],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -560,6 +574,7 @@ const samples = [
|
|||||||
],
|
],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -607,6 +622,7 @@ const samples = [
|
|||||||
],
|
],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -621,6 +637,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -645,6 +662,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -662,6 +680,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -685,6 +704,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -702,6 +722,7 @@ const samples = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -725,6 +746,7 @@ const samples = [
|
|||||||
],
|
],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -747,6 +769,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -767,6 +790,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -788,6 +812,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -808,6 +833,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -839,6 +865,7 @@ const samples = [
|
|||||||
headers: [],
|
headers: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
|
requestVariables: [],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const REST_COLLECTIONS_MOCK: HoppCollection[] = [
|
|||||||
folders: [],
|
folders: [],
|
||||||
requests: [
|
requests: [
|
||||||
{
|
{
|
||||||
v: "1",
|
v: "2",
|
||||||
endpoint: "https://echo.hoppscotch.io",
|
endpoint: "https://echo.hoppscotch.io",
|
||||||
name: "Echo test",
|
name: "Echo test",
|
||||||
params: [],
|
params: [],
|
||||||
@@ -35,6 +35,7 @@ export const REST_COLLECTIONS_MOCK: HoppCollection[] = [
|
|||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
body: { contentType: null, body: null },
|
body: { contentType: null, body: null },
|
||||||
|
requestVariables: [],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
auth: { authType: "none", authActive: true },
|
auth: { authType: "none", authActive: true },
|
||||||
@@ -136,7 +137,8 @@ export const REST_HISTORY_MOCK: RESTHistoryEntry[] = [
|
|||||||
params: [],
|
params: [],
|
||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
v: "1",
|
requestVariables: [],
|
||||||
|
v: "2",
|
||||||
},
|
},
|
||||||
responseMeta: { duration: 807, statusCode: 200 },
|
responseMeta: { duration: 807, statusCode: 200 },
|
||||||
star: false,
|
star: false,
|
||||||
@@ -192,7 +194,7 @@ export const REST_TAB_STATE_MOCK: PersistableTabState<HoppRESTDocument> = {
|
|||||||
tabID: "e6e8d800-caa8-44a2-a6a6-b4765a3167aa",
|
tabID: "e6e8d800-caa8-44a2-a6a6-b4765a3167aa",
|
||||||
doc: {
|
doc: {
|
||||||
request: {
|
request: {
|
||||||
v: "1",
|
v: "2",
|
||||||
endpoint: "https://echo.hoppscotch.io",
|
endpoint: "https://echo.hoppscotch.io",
|
||||||
name: "Echo test",
|
name: "Echo test",
|
||||||
params: [],
|
params: [],
|
||||||
@@ -202,6 +204,7 @@ export const REST_TAB_STATE_MOCK: PersistableTabState<HoppRESTDocument> = {
|
|||||||
preRequestScript: "",
|
preRequestScript: "",
|
||||||
testScript: "",
|
testScript: "",
|
||||||
body: { contentType: null, body: null },
|
body: { contentType: null, body: null },
|
||||||
|
requestVariables: [],
|
||||||
},
|
},
|
||||||
isDirty: false,
|
isDirty: false,
|
||||||
saveContext: {
|
saveContext: {
|
||||||
|
|||||||
Reference in New Issue
Block a user