File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -643,27 +643,6 @@ describe('Type System: Non-Null', () => {
643643 expectNonNull ( ListOfScalarsType ) . to . not . throw ( ) ;
644644 expectNonNull ( ListOfNonNullScalarsType ) . to . not . throw ( ) ;
645645 } ) ;
646-
647- it ( 'rejects a non-type as nullable type of non-null' , ( ) => {
648- // @ts -expect-error
649- expectNonNull ( NonNullScalarType ) . to . throw (
650- 'Expected Scalar! to be a GraphQL nullable type.' ,
651- ) ;
652- // @ts -expect-error
653- expectNonNull ( { } ) . to . throw ( 'Expected {} to be a GraphQL nullable type.' ) ;
654- // @ts -expect-error
655- expectNonNull ( String ) . to . throw (
656- 'Expected [function String] to be a GraphQL nullable type.' ,
657- ) ;
658- // @ts -expect-error (must provide type)
659- expectNonNull ( null ) . to . throw (
660- 'Expected null to be a GraphQL nullable type.' ,
661- ) ;
662- // @ts -expect-error (must provide type)
663- expectNonNull ( undefined ) . to . throw (
664- 'Expected undefined to be a GraphQL nullable type.' ,
665- ) ;
666- } ) ;
667646} ) ;
668647
669648describe ( 'Type System: test utility methods' , ( ) => {
You can’t perform that action at this time.
0 commit comments