Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Nov 28, 2024
1 parent ea293d5 commit 0fe273f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/iso-date/Date.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ describe('GraphQLDate', () => {
};

it(`parses literal ${stringify(literal)} into javascript Date ${stringify(expected)}`, () => {
// @ts-expect-error - intentional invalid input
expect(GraphQLDate.parseLiteral(literal, {})).toEqual(expected);
});
});
Expand All @@ -97,6 +98,7 @@ describe('GraphQLDate', () => {
value,
};
it(`errors when parsing invalid literal ${stringify(invalidLiteral)}`, () => {
// @ts-expect-error - intentional invalid input
expect(() => GraphQLDate.parseLiteral(invalidLiteral, {})).toThrowErrorMatchingSnapshot();
});
});
Expand Down
2 changes: 2 additions & 0 deletions tests/iso-date/DateTime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ describe('GraphQLDateTime', () => {
};

it(`parses literal ${stringify(literal)} into javascript Date ${stringify(expected)}`, () => {
// @ts-expect-error - intentional invalid input
expect(GraphQLDateTime.parseLiteral(literal, {})).toEqual(expected);
});
});
Expand All @@ -139,6 +140,7 @@ describe('GraphQLDateTime', () => {
};
it(`errors when parsing invalid literal ${stringify(invalidLiteral)}`, () => {
expect(() =>
// @ts-expect-error - intentional invalid input
GraphQLDateTime.parseLiteral(invalidLiteral, {}),
).toThrowErrorMatchingSnapshot();
});
Expand Down

0 comments on commit 0fe273f

Please sign in to comment.