@@ -157,35 +157,6 @@ describe('Type predicates', () => {
157
157
it ( 'returns false for custom scalar' , ( ) => {
158
158
expect ( isSpecifiedScalarType ( ScalarType ) ) . to . equal ( false ) ;
159
159
} ) ;
160
-
161
- it ( 'returns false for scalar class (rather than specified instance)' , ( ) => {
162
- expect ( isSpecifiedScalarType ( GraphQLScalarType ) ) . to . equal ( false ) ;
163
- } ) ;
164
-
165
- it ( 'returns false for wrapped specified scalar' , ( ) => {
166
- expect ( isSpecifiedScalarType ( GraphQLList ( GraphQLString ) ) ) . to . equal ( false ) ;
167
- } ) ;
168
-
169
- it ( 'returns false for non-scalar' , ( ) => {
170
- expect ( isSpecifiedScalarType ( EnumType ) ) . to . equal ( false ) ;
171
- expect ( isSpecifiedScalarType ( Directive ) ) . to . equal ( false ) ;
172
- } ) ;
173
-
174
- it ( 'returns false for spec defined directive' , ( ) => {
175
- expect ( isSpecifiedScalarType ( GraphQLSkipDirective ) ) . to . equal ( false ) ;
176
- } ) ;
177
-
178
- it ( 'returns false for object type named like specified scalar' , ( ) => {
179
- const ObjectNamedLikeScalar = new GraphQLObjectType ( {
180
- name : 'String' ,
181
- fields : { serialize : { type : GraphQLString } } ,
182
- } ) ;
183
- expect ( isSpecifiedScalarType ( ObjectNamedLikeScalar ) ) . to . equal ( false ) ;
184
- } ) ;
185
-
186
- it ( 'returns false for random garbage' , ( ) => {
187
- expect ( isSpecifiedScalarType ( { what : 'is this' } ) ) . to . equal ( false ) ;
188
- } ) ;
189
160
} ) ;
190
161
191
162
describe ( 'isObjectType' , ( ) => {
@@ -700,29 +671,5 @@ describe('Directive predicates', () => {
700
671
it ( 'returns false for custom directive' , ( ) => {
701
672
expect ( isSpecifiedDirective ( Directive ) ) . to . equal ( false ) ;
702
673
} ) ;
703
-
704
- it ( 'returns false for directive class (rather than specified instance)' , ( ) => {
705
- expect ( isSpecifiedDirective ( GraphQLDirective ) ) . to . equal ( false ) ;
706
- } ) ;
707
-
708
- it ( 'returns false for non-directive' , ( ) => {
709
- expect ( isSpecifiedDirective ( EnumType ) ) . to . equal ( false ) ;
710
- expect ( isSpecifiedDirective ( ScalarType ) ) . to . equal ( false ) ;
711
- } ) ;
712
-
713
- it ( 'returns false for spec defined scalar type' , ( ) => {
714
- expect ( isSpecifiedDirective ( GraphQLString ) ) . to . equal ( false ) ;
715
- } ) ;
716
-
717
- it ( 'returns false for scalar type named like specified directive' , ( ) => {
718
- const ScalarNamedLikeDirective = new GraphQLScalarType ( {
719
- name : 'deprecated' ,
720
- } ) ;
721
- expect ( isSpecifiedDirective ( ScalarNamedLikeDirective ) ) . to . equal ( false ) ;
722
- } ) ;
723
-
724
- it ( 'returns false for random garbage' , ( ) => {
725
- expect ( isSpecifiedDirective ( { what : 'is this' } ) ) . to . equal ( false ) ;
726
- } ) ;
727
674
} ) ;
728
675
} ) ;
0 commit comments