Skip to content

Commit c1b8052

Browse files
committed
refactor: fix expected result for test according to new behaviour in api-diff
1 parent 01fe7e8 commit c1b8052

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

test/changes.test.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,8 @@ describe('Changes test', () => {
143143
test('Move prefix from server to path', async () => {
144144
const result = await buildChangelogPackage('changelog/move-prefix-from-server-to-path')
145145

146-
// todo uncomment after applying the fix in apiDiff
147-
// expect(result).toEqual(changesSummaryMatcher({ [ANNOTATION_CHANGE_TYPE]: 3 }))
148-
// expect(result).toEqual(numberOfImpactedOperationsMatcher({ [ANNOTATION_CHANGE_TYPE]: 1 }))
149-
150-
expect(result).toEqual(changesSummaryMatcher({
151-
[ANNOTATION_CHANGE_TYPE]: 2,
152-
[BREAKING_CHANGE_TYPE]: 1,
153-
}))
154-
expect(result).toEqual(numberOfImpactedOperationsMatcher({
155-
[ANNOTATION_CHANGE_TYPE]: 1,
156-
[BREAKING_CHANGE_TYPE]: 1,
157-
}))
146+
expect(result).toEqual(changesSummaryMatcher({ [ANNOTATION_CHANGE_TYPE]: 3 }))
147+
expect(result).toEqual(numberOfImpactedOperationsMatcher({ [ANNOTATION_CHANGE_TYPE]: 1 }))
158148
})
159149

160150
// todo: case that we don't support due to shifting to the new changelog calculation approach which involves comparison of the entire docs instead of the operation vs operation comparison

0 commit comments

Comments
 (0)