Skip to content

Commit 87e20de

Browse files
committed
label new tests as describing non-specified behavior
1 parent 5944169 commit 87e20de

1 file changed

Lines changed: 2 additions & 59 deletions

File tree

src/validation/__tests__/VariablesInAllowedPositionRule-test.ts

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -533,66 +533,9 @@ describe('Validates OneOf Input Objects', () => {
533533
},
534534
]);
535535
});
536+
});
536537

537-
it('Custom scalars as arg', () => {
538-
expectValid(`
539-
query Query($point: GeoPoint) {
540-
dog {
541-
distanceFrom(loc: $point)
542-
}
543-
}`);
544-
});
545-
546-
it('Forbids using custom scalar as builtin arg', () => {
547-
expectErrors(`
548-
query Query($point: GeoPoint) {
549-
dog {
550-
isAtLocation(x: $point, y: 10)
551-
}
552-
}
553-
`).toDeepEqual([
554-
{
555-
locations: [
556-
{
557-
column: 19,
558-
line: 2,
559-
},
560-
{
561-
column: 27,
562-
line: 4,
563-
},
564-
],
565-
message:
566-
'Variable "$point" of type "GeoPoint" used in position expecting type "Int".',
567-
},
568-
]);
569-
});
570-
571-
it('Forbids using builtin scalar as custom scalar arg', () => {
572-
expectErrors(`
573-
query Query($x: Float) {
574-
dog {
575-
distanceFrom(loc: $x)
576-
}
577-
}
578-
`).toDeepEqual([
579-
{
580-
locations: [
581-
{
582-
column: 19,
583-
line: 2,
584-
},
585-
{
586-
column: 29,
587-
line: 4,
588-
},
589-
],
590-
message:
591-
'Variable "$x" of type "Float" used in position expecting type "GeoPoint".',
592-
},
593-
]);
594-
});
595-
538+
describe('Non-specified behavior of variables within custom scalars', () => {
596539
it('Allows using variables inside object literal in custom scalar', () => {
597540
expectValid(`
598541
query Query($x: Float) {

0 commit comments

Comments
 (0)