@@ -11,7 +11,6 @@ import { expect } from 'chai';
1111import { parse } from '../../language' ;
1212import { formatError } from '../../error' ;
1313import { validateDocument } from '../' ;
14- import { allRules } from '../allRules' ;
1514import {
1615 GraphQLSchema ,
1716 GraphQLObjectType ,
@@ -99,7 +98,6 @@ var CatOrDog = new GraphQLUnionType({
9998 types : [ Dog , Cat ] ,
10099 resolveType ( /*value*/ ) {
101100 // not used for validation
102- return null ;
103101 }
104102} ) ;
105103
@@ -138,7 +136,6 @@ var DogOrHuman = new GraphQLUnionType({
138136 types : [ Dog , Human ] ,
139137 resolveType ( /*value*/ ) {
140138 // not used for validation
141- return null ;
142139 }
143140} ) ;
144141
@@ -147,7 +144,6 @@ var HumanOrAlien = new GraphQLUnionType({
147144 types : [ Human , Alien ] ,
148145 resolveType ( /*value*/ ) {
149146 // not used for validation
150- return null ;
151147 }
152148} ) ;
153149
@@ -301,11 +297,3 @@ export function expectPassesRuleWithSchema(schema, rule, queryString, errors) {
301297export function expectFailsRuleWithSchema ( schema , rule , queryString , errors ) {
302298 return expectInvalid ( schema , [ rule ] , queryString , errors ) ;
303299}
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