@contrail/flexplm 1.7.1-alpha.09c0de6 → 1.7.1-alpha.69baa36
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.
|
@@ -319,7 +319,8 @@ describe('ThumbnailUtil Tests', () => {
|
|
|
319
319
|
tinyViewableUrl: null,
|
|
320
320
|
};
|
|
321
321
|
mockContentCreate.mockResolvedValue(createdContent);
|
|
322
|
-
const event = { data: { [
|
|
322
|
+
// const event = { data: { [ThumbnailUtil.NEW_THUMBNAIL_ID]: '/rest/thumbnail/thumb.png' } };
|
|
323
|
+
const event = { data: { [thumbnail_util_1.ThumbnailUtil.THUMBNAIL]: '/rest/thumbnail/thumb.png' } };
|
|
323
324
|
await tu.syncThumbnailToVibeIQ({ entityId: 'entity1', event, entityName: 'color' });
|
|
324
325
|
expect(mockGetRequest).toHaveBeenCalledWith({ urlPath: '/rest/thumbnail/thumb.png', includeUrlContext: false, returnFullResponse: true });
|
|
325
326
|
expect(mockContentCreate).toHaveBeenCalledWith(expect.objectContaining({
|
|
@@ -350,7 +351,8 @@ describe('ThumbnailUtil Tests', () => {
|
|
|
350
351
|
primaryFileUrl: 'https://files/primary.png', largeViewableUrl: null,
|
|
351
352
|
mediumLargeViewableUrl: null, mediumViewableUrl: null, smallViewableUrl: null, tinyViewableUrl: null,
|
|
352
353
|
});
|
|
353
|
-
const event = { data: { [
|
|
354
|
+
// const event = { data: { [ThumbnailUtil.NEW_THUMBNAIL_ID]: '/rest/thumbnail/my image.png' } };
|
|
355
|
+
const event = { data: { [thumbnail_util_1.ThumbnailUtil.THUMBNAIL]: '/rest/thumbnail/my image.png' } };
|
|
354
356
|
await tu.syncThumbnailToVibeIQ({ entityId: 'entity1', event, entityName: 'color' });
|
|
355
357
|
expect(mockGetRequest).toHaveBeenCalledWith({
|
|
356
358
|
urlPath: '/rest/thumbnail/my%20image.png',
|
|
@@ -370,7 +372,8 @@ describe('ThumbnailUtil Tests', () => {
|
|
|
370
372
|
primaryFileUrl: 'https://files/primary.jpg', largeViewableUrl: null,
|
|
371
373
|
mediumLargeViewableUrl: null, mediumViewableUrl: null, smallViewableUrl: null, tinyViewableUrl: null,
|
|
372
374
|
});
|
|
373
|
-
const event = { data: { [
|
|
375
|
+
// const event = { data: { [ThumbnailUtil.NEW_THUMBNAIL_ID]: '/rest/thumbnail/café-logo.jpg' } };
|
|
376
|
+
const event = { data: { [thumbnail_util_1.ThumbnailUtil.THUMBNAIL]: '/rest/thumbnail/café-logo.jpg' } };
|
|
374
377
|
await tu.syncThumbnailToVibeIQ({ entityId: 'entity1', event, entityName: 'item' });
|
|
375
378
|
expect(mockGetRequest).toHaveBeenCalledWith({
|
|
376
379
|
urlPath: '/rest/thumbnail/caf%C3%A9-logo.jpg',
|
|
@@ -405,7 +408,8 @@ describe('ThumbnailUtil Tests', () => {
|
|
|
405
408
|
tinyViewableUrl: null,
|
|
406
409
|
};
|
|
407
410
|
mockContentCreate.mockResolvedValue(createdContent);
|
|
408
|
-
const event = { data: { [
|
|
411
|
+
// const event = { data: { [ThumbnailUtil.NEW_THUMBNAIL_ID]: '/rest/thumbnail/new.jpg' } };
|
|
412
|
+
const event = { data: { [thumbnail_util_1.ThumbnailUtil.THUMBNAIL]: '/rest/thumbnail/new.jpg' } };
|
|
409
413
|
await tu.syncThumbnailToVibeIQ({ entityId: 'entity1', primaryViewableId: 'oldPv', event, entityName: 'item' });
|
|
410
414
|
// Creates new content
|
|
411
415
|
expect(mockContentCreate).toHaveBeenCalled();
|