test: fix failing tests

This commit is contained in:
jamesgeorge007
2024-04-16 22:54:16 +05:30
parent 57ef3e085f
commit 375d53263a
2 changed files with 7 additions and 7 deletions

View File

@@ -75,7 +75,7 @@
"auth": { "auth": {
"authType": "api-key", "authType": "api-key",
"authActive": true, "authActive": true,
"addTo": "Headers", "addTo": "HEADERS",
"key": "key", "key": "key",
"value": "test-key" "value": "test-key"
}, },

View File

@@ -25,7 +25,7 @@ export const REST_COLLECTIONS_MOCK: HoppCollection[] = [
folders: [], folders: [],
requests: [ requests: [
{ {
v: "3", v: "4",
endpoint: "https://echo.hoppscotch.io", endpoint: "https://echo.hoppscotch.io",
name: "Echo test", name: "Echo test",
params: [], params: [],
@@ -50,7 +50,7 @@ export const GQL_COLLECTIONS_MOCK: HoppCollection[] = [
folders: [], folders: [],
requests: [ requests: [
{ {
v: 3, v: 4,
name: "Echo test", name: "Echo test",
url: "https://echo.hoppscotch.io/graphql", url: "https://echo.hoppscotch.io/graphql",
headers: [], headers: [],
@@ -138,7 +138,7 @@ export const REST_HISTORY_MOCK: RESTHistoryEntry[] = [
preRequestScript: "", preRequestScript: "",
testScript: "", testScript: "",
requestVariables: [], requestVariables: [],
v: "3", v: "4",
}, },
responseMeta: { duration: 807, statusCode: 200 }, responseMeta: { duration: 807, statusCode: 200 },
star: false, star: false,
@@ -150,7 +150,7 @@ export const GQL_HISTORY_MOCK: GQLHistoryEntry[] = [
{ {
v: 1, v: 1,
request: { request: {
v: 3, v: 4,
name: "Untitled", name: "Untitled",
url: "https://echo.hoppscotch.io/graphql", url: "https://echo.hoppscotch.io/graphql",
query: "query Request { url }", query: "query Request { url }",
@@ -171,7 +171,7 @@ export const GQL_TAB_STATE_MOCK: PersistableTabState<HoppGQLDocument> = {
tabID: "5edbe8d4-65c9-4381-9354-5f1bf05d8ccc", tabID: "5edbe8d4-65c9-4381-9354-5f1bf05d8ccc",
doc: { doc: {
request: { request: {
v: 3, v: 4,
name: "Untitled", name: "Untitled",
url: "https://echo.hoppscotch.io/graphql", url: "https://echo.hoppscotch.io/graphql",
headers: [], headers: [],
@@ -194,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: "3", v: "4",
endpoint: "https://echo.hoppscotch.io", endpoint: "https://echo.hoppscotch.io",
name: "Echo test", name: "Echo test",
params: [], params: [],