Skip to content

Commit 5cb14b8

Browse files
committed
refactor: add noChangesMatcher
1 parent 21196bb commit 5cb14b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/helpers/matchers.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ export function apihubOperationChangesMatcher(
6262
])
6363
}
6464

65+
export function noChangesMatcher(
66+
apiType: OperationsApiType = REST_API_TYPE,
67+
): ApihubChangesSummaryMatcher {
68+
return operationTypeMatcher({
69+
apiType: apiType,
70+
changesSummary: EMPTY_CHANGE_SUMMARY,
71+
numberOfImpactedOperations: EMPTY_CHANGE_SUMMARY,
72+
})
73+
}
74+
6575
export function changesSummaryMatcher(
6676
expected: Partial<ChangeSummary>,
6777
apiType: OperationsApiType = REST_API_TYPE,

0 commit comments

Comments
 (0)