mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
chore[GH-#848]: add unit test for dividerElement (#1503)
This commit is contained in:
parent
9ca5cd6a87
commit
598c404779
@ -0,0 +1,9 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`components/content/DividerElement should match snapshot 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="DividerElement"
|
||||
/>
|
||||
</div>
|
||||
`;
|
17
webapp/src/components/content/dividerElement.test.tsx
Normal file
17
webapp/src/components/content/dividerElement.test.tsx
Normal 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()
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user