File size: 709 Bytes
13555f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import React from 'react'

import {render} from '@testing-library/react'

import {FileInfo} from '../../../blocks/block'

import ArchivedFile from './archivedFile'

describe('components/content/archivedFile', () => {
    it('should match snapshot', () => {
        const fileInfo: FileInfo = {
            archived: true,
            extension: '.txt',
            name: 'stuff to put in jell-o',
            size: 2056,
        }

        const component = (<ArchivedFile fileInfo={fileInfo}/>)
        const {container} = render(component)
        expect(container).toMatchSnapshot()
    })
})