Skip to content

Commit 2e52bf0

Browse files
committed
type fix
1 parent 3c23189 commit 2e52bf0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/component-view/api-mocking/priceAlerts.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ export function setupPercentPriceAlertsPostMock(
133133
expectedBody: SavePercentAlertParams,
134134
): Scope {
135135
return nock(PRICE_ALERTS_ORIGIN)
136-
.post(PERCENT_ALERTS_PATH, expectedBody)
136+
.post(
137+
PERCENT_ALERTS_PATH,
138+
expectedBody as unknown as nock.RequestBodyMatcher,
139+
)
137140
.reply(201, mockCreatedPercentAlert);
138141
}
139142

@@ -146,7 +149,10 @@ export function setupPercentPriceAlertsPatchMock(
146149
expectedBody: UpdatePercentAlertParams,
147150
): Scope {
148151
return nock(PRICE_ALERTS_ORIGIN)
149-
.patch(`${PERCENT_ALERTS_PATH}/${alertId}`, expectedBody)
152+
.patch(
153+
`${PERCENT_ALERTS_PATH}/${alertId}`,
154+
expectedBody as unknown as nock.RequestBodyMatcher,
155+
)
150156
.reply(200);
151157
}
152158

0 commit comments

Comments
 (0)