Skip to content

Commit

Permalink
validation-test: remove unneeded 'specifiedRules' (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Aug 7, 2019
1 parent 14f260b commit d4ccf67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/validation/__tests__/validation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { parse } from '../../language/parser';
import { TypeInfo } from '../../utilities/TypeInfo';

import { validate } from '../validate';
import { specifiedRules } from '../specifiedRules';

import { testSchema } from './harness';

Expand Down Expand Up @@ -65,7 +64,7 @@ describe('Validate: Supports full validation', () => {
}
`);

const errors = validate(testSchema, doc, specifiedRules, typeInfo);
const errors = validate(testSchema, doc, undefined, typeInfo);
const errorMessages = errors.map(err => err.message);

expect(errorMessages).to.deep.equal([
Expand Down

0 comments on commit d4ccf67

Please sign in to comment.