hunk.code_window:             windowHeight: Utils.windowHeight()
           });
       }
       onPreferenceChange() {
           this.setState({
               compactDisplay: PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, Preferences.MESSAGE_DISPLAY, Preferences.MESSAGE_DISPLAY_DEFAULT) === Preferences.MESSAGE_DISPLAY_COMPACT,
  
hunk.labels: keep keep keep keep replace keep keep
hunk.after_edit:     onPreferenceChange(category) {
           let previewSuffix = '';
           if (category === Preferences.CATEGORY_DISPLAY_SETTINGS) {
               previewSuffix = '_' + Utils.generateId();
           }
  
hunk.file_path: webapp/components/rhs_thread.jsx
hunk.type: replace
file: // Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  import assert from 'assert';
  
  import SuggestionBox from 'components/suggestion/suggestion_box.jsx';
  
  describe('SuggestionBox', function() {
      it('findOverlap', function(done) {
          assert.equal(SuggestionBox.findOverlap('', 'blue'), '');
          assert.equal(SuggestionBox.findOverlap('red', ''), '');
          assert.equal(SuggestionBox.findOverlap('red', 'blue'), '');
          assert.equal(SuggestionBox.findOverlap('red', 'dog'), 'd');
          assert.equal(SuggestionBox.findOverlap('red', 'education'), 'ed');
          assert.equal(SuggestionBox.findOverlap('red', 'reduce'), 'red');
          assert.equal(SuggestionBox.findOverlap('black', 'ack'), 'ack');
  
          done();
      });
  });