hunk.code_window:     it('Image with link', function(done) {
           assert.equal(
               Markdown.format('[![Mattermost](../../images/icon-76x76.png)](https://github.com/mattermost/platform)').trim(),
               '<p><a class="theme markdown__link" href="https://github.com/mattermost/platform" rel="noreferrer" target="_blank"><img src="../../images/icon-76x76.png" alt="Mattermost" onload="window.markdownImageLoaded(this)" onerror="window.markdownImageLoaded(this)" class="markdown-inline-img" crossorigin="anonymous"></a></p>'
           );
           done();
       });
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:             '<p><a class="theme markdown__link" href="https://github.com/mattermost/platform" rel="noreferrer" target="_blank"><img src="../../images/icon-76x76.png" alt="Mattermost" onload="window.markdownImageLoaded(this)" onerror="window.markdownImageLoaded(this)" class="markdown-inline-img"></a></p>'
  
hunk.file_path: webapp/tests/formatting_imgs.test.jsx
hunk.type: replace
file: // Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  import LocalizationStore from 'stores/localization_store.jsx';
  
  const LICENSE_EXPIRY_NOTIFICATION = 1000 * 60 * 60 * 24 * 60; // 60 days
  const LICENSE_GRACE_PERIOD = 1000 * 60 * 60 * 24 * 15; // 15 days
  
  export function isLicenseExpiring() {
      if (window.mm_license.IsLicensed !== 'true') {
          return false;
      }
  
      const timeDiff = parseInt(global.window.mm_license.ExpiresAt, 10) - Date.now();
      return timeDiff <= LICENSE_EXPIRY_NOTIFICATION;
  }
  
  export function isLicenseExpired() {
      if (window.mm_license.IsLicensed !== 'true') {
          return false;
      }
  
      const timeDiff = parseInt(global.window.mm_license.ExpiresAt, 10) - Date.now();
      return timeDiff < 0;
  }
  
  export function isLicensePastGracePeriod() {
      if (window.mm_license.IsLicensed !== 'true') {
          return false;
      }
  
      const timeDiff = Date.now() - parseInt(global.window.mm_license.ExpiresAt, 10);
      return timeDiff > LICENSE_GRACE_PERIOD;
  }
  
  export function displayExpiryDate() {
      const date = new Date(parseInt(global.window.mm_license.ExpiresAt, 10));
      return date.toLocaleString(LocalizationStore.getLocale(), {year: 'numeric', month: 'long', day: 'numeric'});
  }
  