Skip to content

Commit 99e227c

Browse files
committed
fix test: undefined variable defaults - @include(if:false) excludes field from result
1 parent 262f207 commit 99e227c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/cache/inmemory/__tests__/readFromStore.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ describe("reading from the store", () => {
278278
ROOT_QUERY: {
279279
__typename: "Query",
280280
id: "abcd",
281-
field: null,
282281
} as StoreObject,
283282
});
284283

@@ -288,10 +287,9 @@ describe("reading from the store", () => {
288287
variables,
289288
});
290289

290+
// $show defaults to false, so @include(if: false) excludes the field
291291
expect(result).toEqual({
292-
__typename: "Query",
293292
id: "abcd",
294-
field: null,
295293
});
296294
});
297295

0 commit comments

Comments
 (0)