Skip to content

Commit

Permalink
Fix tests affected by change to cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jan 31, 2025
1 parent f88e807 commit abcbc92
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/core/__tests__/ObservableQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ describe("ObservableQuery", () => {
await observable.refetch(variables2);

await expect(stream).toEmitApolloQueryResult({
// TODO: Ensure this value is undefined instead of an empty object
data: {},
data: undefined,
loading: true,
networkStatus: NetworkStatus.setVariables,
partial: true,
Expand Down Expand Up @@ -404,7 +403,7 @@ describe("ObservableQuery", () => {
});

await expect(stream).toEmitApolloQueryResult({
data: {},
data: undefined,
loading: true,
networkStatus: NetworkStatus.setVariables,
partial: true,
Expand Down Expand Up @@ -561,7 +560,7 @@ describe("ObservableQuery", () => {
await client.resetStore();

await expect(stream).toEmitApolloQueryResult({
data: {},
data: undefined,
loading: false,
networkStatus: NetworkStatus.ready,
partial: true,
Expand Down Expand Up @@ -825,7 +824,7 @@ describe("ObservableQuery", () => {
await expect(stream).toEmitApolloQueryResult({
// TODO: Fix this error
// @ts-expect-error `ApolloQueryResult` needs to be updated to allow for `undefined` and this value needs to emit undefined instead of empty object
data: {},
data: undefined,
loading: true,
networkStatus: NetworkStatus.setVariables,
partial: true,
Expand Down Expand Up @@ -1069,7 +1068,7 @@ describe("ObservableQuery", () => {
await expect(stream).toEmitApolloQueryResult({
// TODO: Fix this error
// @ts-expect-error Ensure ApolloQueryResult allows for undefined and fix this value to match
data: {},
data: undefined,
loading: true,
networkStatus: NetworkStatus.setVariables,
partial: true,
Expand Down Expand Up @@ -1120,7 +1119,7 @@ describe("ObservableQuery", () => {
await expect(stream).toEmitApolloQueryResult({
// TODO: Fix this error
// @ts-expect-error Need to update ApolloQueryResult to allow undefined and fix this value
data: {},
data: undefined,
loading: true,
networkStatus: NetworkStatus.setVariables,
partial: true,
Expand Down Expand Up @@ -1452,7 +1451,7 @@ describe("ObservableQuery", () => {
await observable.refetch(variables2);

await expect(stream).toEmitApolloQueryResult({
data: {},
data: undefined,
loading: true,
networkStatus: NetworkStatus.setVariables,
partial: true,
Expand Down Expand Up @@ -1566,7 +1565,7 @@ describe("ObservableQuery", () => {
await observable.refetch(variables2);

await expect(stream).toEmitApolloQueryResult({
data: {},
data: undefined,
loading: true,
networkStatus: NetworkStatus.setVariables,
partial: true,
Expand Down

0 comments on commit abcbc92

Please sign in to comment.