Skip to content

Commit b2aafc4

Browse files
findBreakingChanges: extract "diff" utility function (#1908)
1 parent d987492 commit b2aafc4

File tree

2 files changed

+262
-264
lines changed

2 files changed

+262
-264
lines changed

src/utilities/__tests__/findBreakingChanges-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,14 @@ describe('findBreakingChanges', () => {
226226
`);
227227

228228
expect(findBreakingChanges(oldSchema, newSchema)).to.deep.equal([
229-
{
230-
type: BreakingChangeType.FIELD_CHANGED_KIND,
231-
description: 'InputType1.field1 changed type from String to Int.',
232-
},
233229
{
234230
type: BreakingChangeType.FIELD_REMOVED,
235231
description: 'InputType1.field2 was removed.',
236232
},
233+
{
234+
type: BreakingChangeType.FIELD_CHANGED_KIND,
235+
description: 'InputType1.field1 changed type from String to Int.',
236+
},
237237
{
238238
type: BreakingChangeType.FIELD_CHANGED_KIND,
239239
description: 'InputType1.field3 changed type from [String] to String.',

0 commit comments

Comments
 (0)