Skip to content

Commit e684a65

Browse files
author
The Ult
committed
test(angular): add /confirm suffix to confirmReservation route fixtures
Route strings in the regression test now match the OpenAPI fixture path '/reservations/{token}/confirm', making the test self-consistent.
1 parent 7fb2744 commit e684a65

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/angular/src/http-client.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,8 @@ describe('angular HttpClient generator', () => {
823823
operationId: 'confirmReservation',
824824
operationName: 'confirmReservation',
825825
verb: 'post',
826-
route: '/reservations/${token}',
827-
pathRoute: '/reservations/{token}',
826+
route: '/reservations/${token}/confirm',
827+
pathRoute: '/reservations/{token}/confirm',
828828
body: {
829829
implementation: 'confirmReservationBody',
830830
definition: 'ConfirmReservationBody',
@@ -869,7 +869,7 @@ describe('angular HttpClient generator', () => {
869869
}),
870870
});
871871
const options = createGeneratorOptions({
872-
route: '/api/reservations/${token}',
872+
route: '/api/reservations/${token}/confirm',
873873
});
874874

875875
const impl = generateHttpClientImplementation(verbOption, options);
@@ -898,7 +898,7 @@ describe('angular HttpClient generator', () => {
898898

899899
// The HTTP call itself must still pass the body as the positional argument
900900
expect(impl).toContain(
901-
'this.http.post<Pet>(`/api/reservations/${token}`, confirmReservationBody, {',
901+
'this.http.post<Pet>(`/api/reservations/${token}/confirm`, confirmReservationBody, {',
902902
);
903903
});
904904

0 commit comments

Comments
 (0)