Skip to content

Commit 418a32a

Browse files
author
Iurii Golovinskii
committed
review 4
1 parent 9713f9b commit 418a32a

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

src/types/package/comparisons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import { ChangeSummary, DiffTypeDto, OperationId, OperationType, PackageId, Vers
1818
import { ActionType, DiffAction, DiffType } from '@netcracker/qubership-apihub-api-diff'
1919
import { JsonPath } from '@netcracker/qubership-apihub-json-crawl'
2020

21+
export type ChangeMessage<T = DiffType> = ChangeAdd<T> | ChangeRemove<T> | ChangeReplace<T> | ChangeRename<T>
22+
2123
export interface PackageComparisons {
2224
comparisons: PackageComparison[]
2325
}
@@ -82,5 +84,3 @@ export interface ChangeRename<T> extends ChangeBase<T> {
8284
currentKey: unknown
8385
previousKey: unknown
8486
}
85-
86-
export type ChangeMessage<T = DiffType> = ChangeAdd<T> | ChangeRemove<T> | ChangeReplace<T> | ChangeRename<T>

test/deprecated.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ describe('Deprecated Items test', () => {
103103
}, {}, portal)
104104

105105
const result = await editor.run()
106-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
107-
// @ts-ignore
108106
expect(result.comparisons[0].operationTypes[0].changesSummary?.[RISKY_CHANGE_TYPE]).toBe(4)
109107
})
110108
})

test/performance.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@ await portal.publish('performance', {
4444
{ fileId: '2024.1/openapi_large_x6.yaml' },
4545
],
4646
})
47-
console.log('DONE')

test/risky-changes.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ describe('Risky changes test', () => {
5050
}, {}, portal)
5151

5252
const result = await editor.run()
53-
54-
5553
expect(result).toEqual(changesSummaryMatcher({
5654
[NON_BREAKING_CHANGE_TYPE]: 1,
5755
[RISKY_CHANGE_TYPE]: 1,
@@ -92,8 +90,6 @@ describe('Risky changes test', () => {
9290
}, {}, portal)
9391

9492
const result = await editor.run()
95-
96-
9793
expect(result).toEqual(changesSummaryMatcher({
9894
[BREAKING_CHANGE_TYPE]: 1,
9995
[RISKY_CHANGE_TYPE]: 1,

0 commit comments

Comments
 (0)