hunk.code_window: exports[`components/FileInfoPreview should match snapshot, can download files 1`] = `
   <div
     className="file-details__container"
   >
     <ExternalLink
       className="file-details__preview"
       href="https://pre-release.mattermost.com/api/v4/files/rqir81f7a7ft8m6j6ej7g1txuo"
  
hunk.labels: keep keep keep keep keep replace keep keep
hunk.after_edit:   <a
  
hunk.file_path: webapp/channels/src/components/file_info_preview/__snapshots__/file_info_preview.test.tsx.snap
hunk.type: replace
file: // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  import type {GlobalState} from '@mattermost/types/store';
  
  import * as Selectors from 'mattermost-redux/selectors/entities/search';
  import deepFreezeAndThrowOnMutation from 'mattermost-redux/utils/deep_freeze';
  
  import TestHelper from '../../../test/test_helper';
  
  describe('Selectors.Search', () => {
      const team1 = TestHelper.fakeTeamWithId();
  
      const team1CurrentSearch = {params: {page: 0, per_page: 20}, isEnd: true};
  
      const testState = deepFreezeAndThrowOnMutation({
          entities: {
              teams: {
                  currentTeamId: team1.id,
              },
              search: {
                  current: {[team1.id]: team1CurrentSearch},
              },
          },
      });
  
      it('should return current search for current team', () => {
          expect(Selectors.getCurrentSearchForCurrentTeam(testState)).toEqual(team1CurrentSearch);
      });
  
      it('groups', () => {
          const userId = '1234';
          const notifyProps = {
              first_name: 'true',
          };
          const state = {
              entities: {
                  users: {
                      currentUserId: userId,
                      profiles: {
                          [userId]: {id: userId, username: 'user', first_name: 'First', last_name: 'Last', notify_props: notifyProps},
                      },
                  },
                  groups: {
                      groups: {
                          test1: {
                              name: 'I-AM-THE-BEST!',
                              display_name: 'I-AM-THE-BEST!',
                              delete_at: 0,
                              allow_reference: true,
                          },
                          test2: {
                              name: 'Do-you-love-me?',
                              display_name: 'Do-you-love-me?',
                              delete_at: 0,
                              allow_reference: true,
                          },
                          test3: {
                              name: 'Maybe?-A-little-bit-I-guess....',
                              display_name: 'Maybe?-A-little-bit-I-guess....',
                              delete_at: 0,
                              allow_reference: false,
                          },
                      },
                      myGroups: [
                          'test1',
                          'test2',
                          'test3',
                      ],
                  },
              },
          } as unknown as GlobalState;
  
          expect(Selectors.getAllUserMentionKeys(state)).toEqual([{key: 'First', caseSensitive: true}, {key: '@user'}, {key: '@Do-you-love-me?'}, {key: '@I-AM-THE-BEST!'}]);
      });
  });
  