diff --git a/webapp/src/components/content/__snapshots__/contentElement.test.tsx.snap b/webapp/src/components/content/__snapshots__/contentElement.test.tsx.snap
index 8b8f5102d..b5d330e98 100644
--- a/webapp/src/components/content/__snapshots__/contentElement.test.tsx.snap
+++ b/webapp/src/components/content/__snapshots__/contentElement.test.tsx.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`components/content/contentElement return an element 1`] = `
+exports[`components/content/contentElement should match snapshot for checkbox type 1`] = `
(
+ wrapIntl(
+
+ {child}
+ ,
+ )
+)
+
describe('components/content/contentElement', () => {
- test('return an element', () => {
- const contentBlock: ContentBlock = {
- id: 'test-id',
- workspaceId: '',
- parentId: '',
- rootId: '',
- modifiedBy: 'test-user-id',
- schema: 0,
- type: 'checkbox',
- title: 'test-title',
- fields: {},
- createdBy: 'test-user-id',
- createAt: 0,
- updateAt: 0,
- deleteAt: 0,
- }
- const checkBoxElement = ContentElement({block: contentBlock, readonly: false})
- const {container} = render(wrapIntl(checkBoxElement))
+ it('should match snapshot for checkbox type', () => {
+ const {container} = render(wrap(
+ ,
+ ))
expect(container).toMatchSnapshot()
})
- test('return null', () => {
- const contentBlock: ContentBlock = {
- id: 'test-id',
- workspaceId: '',
- parentId: '',
- rootId: '',
- modifiedBy: 'test-user-id',
- schema: 0,
- type: 'unknown',
- title: 'test-title',
- fields: {},
- createdBy: 'test-user-id',
- createAt: 0,
- updateAt: 0,
- deleteAt: 0,
- }
- const contentElement = ContentElement({block: contentBlock, readonly: false})
- expect(contentElement).toBeNull()
+ it('should return null for unknown type', () => {
+ const block: ContentBlock = {...contentBlock, type: 'unknown'}
+ const {container} = render(wrap(
+ ,
+ ))
+ expect(container).toBeEmptyDOMElement()
})
})