Skip to content

Commit

Permalink
findBreakingChanges-test: Unify changes snapshots (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 24, 2019
1 parent d1bc6b4 commit f37b526
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utilities/__tests__/findBreakingChanges-test.js
Expand Up @@ -575,8 +575,8 @@ describe('findBreakingChanges', () => {

expect(findBreakingChanges(oldSchema, newSchema)).to.deep.equal([
{
description: 'Type1 no longer implements interface Interface1.',
type: BreakingChangeType.INTERFACE_REMOVED_FROM_OBJECT,
description: 'Type1 no longer implements interface Interface1.',
},
]);
});
Expand Down Expand Up @@ -742,7 +742,7 @@ describe('findBreakingChanges', () => {
expect(findBreakingChanges(oldSchema, newSchema)).to.deep.equal([
{
type: BreakingChangeType.DIRECTIVE_REMOVED,
description: `DirectiveThatIsRemoved was removed.`,
description: 'DirectiveThatIsRemoved was removed.',
},
]);
});
Expand Down Expand Up @@ -882,8 +882,8 @@ describe('findDangerousChanges', () => {

expect(findDangerousChanges(oldSchema, newSchema)).to.deep.equal([
{
description: 'NewInterface added to interfaces implemented by Type1.',
type: DangerousChangeType.INTERFACE_ADDED_TO_OBJECT,
description: 'NewInterface added to interfaces implemented by Type1.',
},
]);
});
Expand Down Expand Up @@ -973,18 +973,18 @@ describe('findDangerousChanges', () => {

expect(findDangerousChanges(oldSchema, newSchema)).to.deep.equal([
{
type: DangerousChangeType.ARG_DEFAULT_VALUE_CHANGE,
description:
'Type1.field1 arg argThatChangesDefaultValue has changed defaultValue.',
type: 'ARG_DEFAULT_VALUE_CHANGE',
},
{
type: DangerousChangeType.VALUE_ADDED_TO_ENUM,
description: 'VALUE2 was added to enum type EnumType1.',
type: 'VALUE_ADDED_TO_ENUM',
},
{
type: DangerousChangeType.INTERFACE_ADDED_TO_OBJECT,
description:
'Interface1 added to interfaces implemented by TypeThatGainsInterface1.',
type: DangerousChangeType.INTERFACE_ADDED_TO_OBJECT,
},
{
type: DangerousChangeType.TYPE_ADDED_TO_UNION,
Expand Down

0 comments on commit f37b526

Please sign in to comment.