diff --git a/property_tests/arbitraries/http/request_arb.ts b/property_tests/arbitraries/http/request_arb.ts index 274c6702fd..694e1edb75 100644 --- a/property_tests/arbitraries/http/request_arb.ts +++ b/property_tests/arbitraries/http/request_arb.ts @@ -81,7 +81,7 @@ export function HttpRequestArb(): fc.Arbitrary< value: { agentArgumentValue: httpRequest, agentResponseValue: httpRequest, - candidTypeObject: HttpRequest + runtimeCandidTypeObject: HttpRequest }, src: { candidTypeAnnotation: 'HttpRequest', diff --git a/property_tests/arbitraries/http/response_arb.ts b/property_tests/arbitraries/http/response_arb.ts index 2af4654851..a766190c68 100644 --- a/property_tests/arbitraries/http/response_arb.ts +++ b/property_tests/arbitraries/http/response_arb.ts @@ -62,7 +62,9 @@ export function HttpResponseArb( value: { agentArgumentValue: response, agentResponseValue: agentResponseValue, - candidTypeObject: HttpResponse(token.value.candidTypeObject) + runtimeCandidTypeObject: HttpResponse( + token.value.runtimeCandidTypeObject + ) }, src: { candidTypeAnnotation: `HttpResponse<${token.src.candidTypeAnnotation}>`, diff --git a/property_tests/tests/canister_methods/http_request/test/generate_body.ts b/property_tests/tests/canister_methods/http_request/test/generate_body.ts index e1d78f126e..eb0572f916 100644 --- a/property_tests/tests/canister_methods/http_request/test/generate_body.ts +++ b/property_tests/tests/canister_methods/http_request/test/generate_body.ts @@ -7,7 +7,8 @@ export function generateBody( namedParams: Named>[], returnType: CandidValueAndMeta ): string { - const { name: requestParamName, el: requestValueObject } = namedParams[0]; + const { name: requestParamName, value: requestValueObject } = + namedParams[0]; const request = requestValueObject.value.agentArgumentValue; const httpMethodCheck = generateHttpMethodCheck( diff --git a/property_tests/tests/canister_methods/http_request/test/generate_tests.ts b/property_tests/tests/canister_methods/http_request/test/generate_tests.ts index ba906ddd4f..867befdcf5 100644 --- a/property_tests/tests/canister_methods/http_request/test/generate_tests.ts +++ b/property_tests/tests/canister_methods/http_request/test/generate_tests.ts @@ -14,7 +14,7 @@ export function generateTests( HttpResponseAgentResponseValue > ): Test[][] { - const request = params[0].el.value.agentArgumentValue; + const request = params[0].value.value.agentArgumentValue; const expectedResponse = returnType.value.agentResponseValue; return [