Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
validation-test: remove unneeded 'specifiedRules'
  • Loading branch information
IvanGoncharov committed Aug 7, 2019
commit 17b5385cc23156c3d29a863dd41a6738068dce4f
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