feat: gql revamp (#2644)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
Anwarul Islam
2023-08-22 18:13:43 +06:00
committed by GitHub
parent 191fa376d2
commit 88212e8cfe
41 changed files with 2503 additions and 1702 deletions

View File

@@ -6,7 +6,7 @@ import { SpotlightService } from "../.."
import { GQLHistoryEntry, RESTHistoryEntry } from "~/newstore/history"
import { getDefaultRESTRequest } from "~/helpers/rest/default"
import { HoppAction, HoppActionWithArgs } from "~/helpers/actions"
import { defaultGQLSession } from "~/newstore/GQLSession"
import { getDefaultGQLRequest } from "~/helpers/graphql/default"
async function flushPromises() {
return await new Promise((r) => setTimeout(r))
@@ -230,7 +230,7 @@ describe("HistorySpotlightSearcherService", () => {
historyMock.gqlEntries.push({
request: {
...defaultGQLSession.request,
...getDefaultGQLRequest(),
url: "bla.com",
},
response: "{}",
@@ -267,7 +267,7 @@ describe("HistorySpotlightSearcherService", () => {
const historyEntry: GQLHistoryEntry = {
request: {
...defaultGQLSession.request,
...getDefaultGQLRequest(),
url: "bla.com",
},
response: "{}",
@@ -302,7 +302,7 @@ describe("HistorySpotlightSearcherService", () => {
historyMock.gqlEntries.push({
request: {
...defaultGQLSession.request,
...getDefaultGQLRequest(),
url: "bla.com",
},
response: "{}",
@@ -351,7 +351,7 @@ describe("HistorySpotlightSearcherService", () => {
historyMock.gqlEntries.push({
request: {
...defaultGQLSession.request,
...getDefaultGQLRequest(),
url: "bla.com",
},
response: "{}",
@@ -398,7 +398,7 @@ describe("HistorySpotlightSearcherService", () => {
it("none of the history entries are show when neither of the open actions are registered", async () => {
historyMock.gqlEntries.push({
request: {
...defaultGQLSession.request,
...getDefaultGQLRequest(),
url: "bla.com",
},
response: "{}",