Skip to content

Commit 7d29d4e

Browse files
committed
remove unused methods from validator test harness
1 parent 80a7af0 commit 7d29d4e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/validator/__tests__/harness.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { expect } from 'chai';
1111
import { parse } from '../../language';
1212
import { formatError } from '../../error';
1313
import { validateDocument } from '../';
14-
import { allRules } from '../allRules';
1514
import {
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) {
301297
export 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

Comments
 (0)