Skip to content

Commit 44d33e4

Browse files
committed
fix coverage
1 parent 3f6e32b commit 44d33e4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/execution/__tests__/variables-test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,23 @@ describe('Execute: Handles inputs', () => {
888888
});
889889
});
890890

891+
it('allows custom scalars with non-embedded variables', () => {
892+
const result = executeQuery(
893+
`
894+
query ($input: JSONScalar) {
895+
fieldWithJSONScalarInput(input: $input)
896+
}
897+
`,
898+
{ input: { a: 'foo', b: ['bar'], c: 'baz' } },
899+
);
900+
901+
expectJSON(result).toDeepEqual({
902+
data: {
903+
fieldWithJSONScalarInput: '{ a: "foo", b: ["bar"], c: "baz" }',
904+
},
905+
});
906+
});
907+
891908
it('allows custom scalars with embedded operation variables', () => {
892909
const result = executeQuery(
893910
`

0 commit comments

Comments
 (0)