Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findBreakingChanges: extract "diff" utility function #1908

Merged
merged 1 commit into from May 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/utilities/__tests__/findBreakingChanges-test.js
Expand Up @@ -226,14 +226,14 @@ describe('findBreakingChanges', () => {
`);

expect(findBreakingChanges(oldSchema, newSchema)).to.deep.equal([
{
type: BreakingChangeType.FIELD_CHANGED_KIND,
description: 'InputType1.field1 changed type from String to Int.',
},
{
type: BreakingChangeType.FIELD_REMOVED,
description: 'InputType1.field2 was removed.',
},
{
type: BreakingChangeType.FIELD_CHANGED_KIND,
description: 'InputType1.field1 changed type from String to Int.',
},
{
type: BreakingChangeType.FIELD_CHANGED_KIND,
description: 'InputType1.field3 changed type from [String] to String.',
Expand Down