Skip to content

Commit

Permalink
Fix test in datamasking tests that checks when cache warns
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Aug 23, 2024
1 parent 25c47f1 commit 7c2b71c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/__tests__/dataMasking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ test("does not mask fragments marked with @unmask added by document transforms",
}
});

test("does not mask query when using a cache that does not support it", async () => {
test("does not mask query when using a cache that improperly implements the required interface", async () => {
using _ = spyOnConsole("warn");

interface Query {
Expand Down Expand Up @@ -1284,6 +1284,7 @@ test("warns when passing parent object to `from` that is non-normalized", async
});

class TestCache extends ApolloCache<unknown> {
public readonly dataMasking = true;
public diff<T>(query: Cache.DiffOptions): DataProxy.DiffResult<T> {
return {};
}
Expand Down

0 comments on commit 7c2b71c

Please sign in to comment.