diff --git a/test/workers/repository/process/lookup/__snapshots__/index.spec.js.snap b/test/workers/repository/process/lookup/__snapshots__/index.spec.js.snap index 6bf543f53acd0c054cbb0685546eb3be36b59c6b..4bca86f695ff647b960f92d93288d93a1ef02025 100644 --- a/test/workers/repository/process/lookup/__snapshots__/index.spec.js.snap +++ b/test/workers/repository/process/lookup/__snapshots__/index.spec.js.snap @@ -1147,6 +1147,8 @@ exports[`workers/repository/process/lookup .lookupUpdates() supports lock file u Array [ Object { "canBeUnpublished": false, + "displayFrom": "0.4.0", + "displayTo": "0.4.4", "fromVersion": "0.4.0", "isLockfileUpdate": true, "isRange": true, diff --git a/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap b/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap index b8747b96ba46783efefd41d70ac79c246275426d..e50697a4d8a95998c0156957170801a51dac6287 100644 --- a/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap +++ b/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap @@ -51,7 +51,7 @@ Array [ "References", ], "prBodyDefinitions": Object { - "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Change": "{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}", "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", @@ -148,7 +148,7 @@ Array [ "References", ], "prBodyDefinitions": Object { - "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Change": "{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}", "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", @@ -242,7 +242,7 @@ Array [ "References", ], "prBodyDefinitions": Object { - "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Change": "{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}", "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", @@ -342,7 +342,7 @@ Array [ "References", ], "prBodyDefinitions": Object { - "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Change": "{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}", "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", @@ -436,7 +436,7 @@ Array [ "References", ], "prBodyDefinitions": Object { - "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Change": "{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}", "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", @@ -536,7 +536,7 @@ Array [ "References", ], "prBodyDefinitions": Object { - "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Change": "{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}", "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", @@ -633,7 +633,7 @@ Array [ "References", ], "prBodyDefinitions": Object { - "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Change": "{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}", "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}", @@ -730,7 +730,7 @@ Array [ "References", ], "prBodyDefinitions": Object { - "Change": "{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}\`{{{newValue}}}\`", + "Change": "{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}", "Current value": "{{{currentValue}}}", "New value": "{{{newValue}}}", "Package": "{{{depName}}}",