btrz-api-client 8.42.0 → 8.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -73,7 +73,7 @@ function pdfDataFactory(_ref) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
if (query.type === "pre_trip_notification" || query.type === "post_trip_notification") {
|
|
76
|
-
url = "/manifest-notification-data/" + itemId
|
|
76
|
+
url = "/manifest-notification-data/" + itemId;
|
|
77
77
|
}
|
|
78
78
|
if (query.type === "parcel_confirmation") {
|
|
79
79
|
url = "/pdf-parcels/" + itemId;
|
package/package.json
CHANGED
|
@@ -69,7 +69,7 @@ function pdfDataFactory({
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
if (query.type === "pre_trip_notification" || query.type === "post_trip_notification") {
|
|
72
|
-
url = `/manifest-notification-data/${itemId}
|
|
72
|
+
url = `/manifest-notification-data/${itemId}`;
|
|
73
73
|
}
|
|
74
74
|
if (query.type === "parcel_confirmation") {
|
|
75
75
|
url = `/pdf-parcels/${itemId}`;
|
|
@@ -305,7 +305,7 @@ describe("notifications/pdf-data", () => {
|
|
|
305
305
|
it("should return the proper data for pre_trip_notification (manifest notification data)", () => {
|
|
306
306
|
const itemId = "12345";
|
|
307
307
|
const query = {type: "pre_trip_notification"};
|
|
308
|
-
axiosMock.onGet(new RegExp(`^/manifest-notification-data/${itemId}
|
|
308
|
+
axiosMock.onGet(new RegExp(`^/manifest-notification-data/${itemId}`))
|
|
309
309
|
.reply(expectRequest({statusCode: 200, token}));
|
|
310
310
|
return api.notifications.pdfData.get({token, query, itemId});
|
|
311
311
|
});
|
|
@@ -313,7 +313,7 @@ describe("notifications/pdf-data", () => {
|
|
|
313
313
|
it("should return the proper data for post_trip_notification (manifest notification data)", () => {
|
|
314
314
|
const itemId = "12345";
|
|
315
315
|
const query = {type: "post_trip_notification"};
|
|
316
|
-
axiosMock.onGet(new RegExp(`^/manifest-notification-data/${itemId}
|
|
316
|
+
axiosMock.onGet(new RegExp(`^/manifest-notification-data/${itemId}`))
|
|
317
317
|
.reply(expectRequest({statusCode: 200, token}));
|
|
318
318
|
return api.notifications.pdfData.get({token, query, itemId});
|
|
319
319
|
});
|