Skip to content

Commit

Permalink
findBreakingChanges: extract "diff" utility function (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 25, 2019
1 parent d987492 commit b2aafc4
Show file tree
Hide file tree
Showing 2 changed files with 262 additions and 264 deletions.
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

0 comments on commit b2aafc4

Please sign in to comment.