Skip to content

Commit 4c9c66e

Browse files
committed
format
1 parent cad75ff commit 4c9c66e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/core/__tests__/diff/rules/simplify-changes.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ describe('simplifyChanges rule', () => {
287287
email: String!
288288
role: UserRole
289289
}
290-
291290
`);
292291

293292
const b = buildSchema(/* GraphQL */ `
@@ -307,7 +306,6 @@ describe('simplifyChanges rule', () => {
307306
address: String
308307
role: UserRole!
309308
}
310-
311309
`);
312310

313311
const changes = await diff(a, b, [simplifyChanges]);
@@ -376,5 +374,5 @@ describe('simplifyChanges rule', () => {
376374
},
377375
]
378376
`);
379-
})
377+
});
380378
});

packages/core/src/diff/rules/simplify-changes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export const simplifyChanges: Rule = ({ changes }) => {
5555
const parent = parentPath(path);
5656
// check if parent or the current node was changed using a
5757
// "simple change" (aka a change that encapsulates a group of changes)
58-
const matches = changePaths.filter(matchedPath => matchedPath === parent || matchedPath === path);
58+
const matches = changePaths.filter(
59+
matchedPath => matchedPath === parent || matchedPath === path,
60+
);
5961
const hasChangedParent = matches.length > 0;
6062

6163
if (simpleChangeTypes.has(type)) {

0 commit comments

Comments
 (0)