File tree Expand file tree Collapse file tree
tests/component-view/api-mocking Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments