@@ -11,7 +11,6 @@ import { expect } from 'chai';
11
11
import { parse } from '../../language' ;
12
12
import { formatError } from '../../error' ;
13
13
import { validateDocument } from '../' ;
14
- import { allRules } from '../allRules' ;
15
14
import {
16
15
GraphQLSchema ,
17
16
GraphQLObjectType ,
@@ -99,7 +98,6 @@ var CatOrDog = new GraphQLUnionType({
99
98
types : [ Dog , Cat ] ,
100
99
resolveType ( /*value*/ ) {
101
100
// not used for validation
102
- return null ;
103
101
}
104
102
} ) ;
105
103
@@ -138,7 +136,6 @@ var DogOrHuman = new GraphQLUnionType({
138
136
types : [ Dog , Human ] ,
139
137
resolveType ( /*value*/ ) {
140
138
// not used for validation
141
- return null ;
142
139
}
143
140
} ) ;
144
141
@@ -147,7 +144,6 @@ var HumanOrAlien = new GraphQLUnionType({
147
144
types : [ Human , Alien ] ,
148
145
resolveType ( /*value*/ ) {
149
146
// not used for validation
150
- return null ;
151
147
}
152
148
} ) ;
153
149
@@ -301,11 +297,3 @@ export function expectPassesRuleWithSchema(schema, rule, queryString, errors) {
301
297
export function expectFailsRuleWithSchema ( schema , rule , queryString , errors ) {
302
298
return expectInvalid ( schema , [ rule ] , queryString , errors ) ;
303
299
}
304
-
305
- export function expectPassesCompleteValidation ( queryString ) {
306
- return expectValid ( defaultSchema , allRules , queryString ) ;
307
- }
308
-
309
- export function expectFailsCompleteValidation ( queryString , errors ) {
310
- return expectInvalid ( defaultSchema , allRules , queryString , errors ) ;
311
- }
0 commit comments