chore[GH-#848]: add unit test for dividerElement (#1503)

This commit is contained in:
Julien Fabre 2021-10-11 16:45:47 +02:00 committed by GitHub
parent 9ca5cd6a87
commit 598c404779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`components/content/DividerElement should match snapshot 1`] = `
<div>
<div
class="DividerElement"
/>
</div>
`;

View File

@ -0,0 +1,17 @@
// 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 {wrapIntl} from '../../testUtils'
import DividerElement from './dividerElement'
describe('components/content/DividerElement', () => {
test('should match snapshot', async () => {
const component = wrapIntl(<DividerElement/>)
const {container} = render(component)
expect(container).toMatchSnapshot()
})
})